js弹出窗口输入字符串
2016-06-30来源:

<script>

var password = 测试字符串;

var answer = prompt(what's the password? ,默认值);

if (answer == password)

{alert(输入的字符串跟'测试字符串'相同);

}

else

{

alert(输入的js弹出框跟'测试字符串'不同);

}

</script>

推荐信息
Baidu
map