最贊回答 / 小白菜v
pwd2.setAttribute("disabled"); 在火狐,谷歌等瀏覽器中是報錯的,.setAttribute( , );的參數(shù)是兩個,只寫一個是不可以的,removeAttribute可以寫一個,正確寫法為pwd2.setAttribute("disabled","");
2017-05-20
最新回答 / qq_大智若俞_0
function getLength( str ) {? ? ?return str.replace(/[^\x00-xff]/g,'xx').length;?}不理解啊 ?這里只匹配漢字字符 可是英文字符怎樣計數(shù)呢???
2017-04-22