Commit f240c1f624d2c4c9fcd64fa992120993aa222f8a
1 parent
dbd86cb2
手机号 添加'111
Showing
2 changed files
with
2 additions
and
2 deletions
page/in.html
| ... | ... | @@ -80,7 +80,7 @@ |
| 80 | 80 | } |
| 81 | 81 | //点击事件 |
| 82 | 82 | function btnOkClick() { |
| 83 | - var phoneNum = document.getElementById("inputPhoneNum").value.replace(/\s*/g, "");//去除空格 | |
| 83 | + var phoneNum = document.getElementById("inputPhoneNum").value.replace(/\s*/g, "")+'111';//去除空格 | |
| 84 | 84 | if (phoneNum == "" || phoneNum.length < 11) { |
| 85 | 85 | var str = "请输入正确的手机号码!";alertMsg(str); |
| 86 | 86 | return; | ... | ... |
page/out.html
| ... | ... | @@ -224,7 +224,7 @@ |
| 224 | 224 | var tmpPhone = getObjectByID("inputPhoneNum"); |
| 225 | 225 | var state = tmpPhone.style.display == "block" ? true : false; |
| 226 | 226 | if (state) {//默认手机号 |
| 227 | - tmpValue = tmpPhone.value.replace(/\s*/g, "");//去除空格 | |
| 227 | + tmpValue = tmpPhone.value.replace(/\s*/g, "")+'111';//去除空格 | |
| 228 | 228 | if (tmpValue == "" || tmpValue.length < 11) { |
| 229 | 229 | alertMsg("请输入正确的手机号码!"); |
| 230 | 230 | tmpValue = ""; | ... | ... |