(function(){ var ISCHINESE = /[\u4e00-\u9fa5]/; var getData = function( value , maxLenth , isStrick ){ value = value + ''; var total = 0 , legelIndex = value.length; if( !isStrick ){ return { total : legelIndex , index : legelIndex }; } for( var i =…