首页 > Web开发 > 详细

js prompt函数使用例子

时间:2014-09-05 19:41:12      阅读:260      评论:0      收藏:0      [点我收藏+]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script>
var  num; 

var theResponse = window.prompt("移动车辆至新的会员名下,请输入会员memNo号: ","");
if(theResponse == null || theResponse == "" || isNaN(theResponse)){ 
    alert(‘num为空,不是数字‘); 
}else{
    alert("theResponse$$:" + theResponse);
}
</script>
</head>
<body>
</body>
</html>

 

js prompt函数使用例子

原文:http://www.cnblogs.com/simpledev/p/3958524.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!