为什么获得字符串长度的时候this.value可以传入文本框的值啊?
name.onkeyup=function(){ count.style.visibility="visible"; name_length=getlength(this.value); count.innerHTML=name_length+"个字符" if(name_length==0) { count.style.visible="hidden"; }
name.onkeyup=function(){ count.style.visibility="visible"; name_length=getlength(this.value); count.innerHTML=name_length+"个字符" if(name_length==0) { count.style.visible="hidden"; }
2015-04-08
举报