最赞回答 / 小白菜v
pwd2.setAttribute("disabled"); 在火狐,谷歌等浏览器中是报错的,.setAttribute( , );的参数是两个,只写一个是不可以的,removeAttribute可以写一个,正确写法为pwd2.setAttribute("disabled","");
2017-05-20
最新回答 / qq_大智若俞_0
function getLength( str ) { return str.replace(/[^\x00-xff]/g,'xx').length; }不理解啊 这里只匹配汉字字符 可是英文字符怎样计数呢???
2017-04-22