String.prototype.lengthX=function()
{
return this.replace(/[^\x00-\xff]/g,"**").length;
}
var str="苦苛顶替asdfas";
alert(str.len());
alert(str)
</script>
{
return this.replace(/[^\x00-\xff]/g,"**").length;
}
var str="苦苛顶替asdfas";
alert(str.len());
alert(str)
</script>