<label for="">賬號</label><input type="text" style="color: #999;" value="請輸入您的賬號" class="account" maxlength="11" onBlur="textBlur(this)" onFocus="textFocus(this)" /> <span class="error error5"></span>window.onload=function(){// 文本框默認文字? function ?textFocus(el){? if(el.defaultValue == el.value){? el.value == " ";? el.style.color="#333";? }? }?? function ?textBlur(el){? if(el.value == ""){? el.value == el.defaultValue;? el.style.color="#999";? }? }? }提示錯誤textFocus沒定義
初學者,這段代碼是哪的錯誤
成長前端初學者
2017-12-11 23:01:29