<script>
var password = 测试字符串;
var answer = prompt(what's the password? ,默认值);
if (answer == password)
{alert(输入的字符串跟'测试字符串'相同);
}
else
{
alert(输入的js弹出框跟'测试字符串'不同);
</script>
2025国考·省考课程试听报名