请帮忙检查3-15谢谢
来源:3-25 编程练习
qq_mysunshine_24
2018-03-20 16:55:27
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<script>
//补充代码
var tel=prompt("请输入手机号码:");
while(isNaN(tel)){
tel=prompt("请输入手机号码:");
}
while(tel.length!=11){
tel=prompt("请输入手机号码:");
}
var tel1=tel.slice(0,7);
var newtel=tel.replace(tel1,"*******");
document.write(newtel);
</script>
</body>
</html>
1回答
怎么都被占用了呢
2018-03-20
可以呢,继续加油~~
相似问题