摘要: JavaScript:验证输入 <input id="demo" type="text"><script>function myFunction(){var x=document.getElementById("demo").value;if(x==""||isNaN(x)) { alert("No 阅读全文
posted @ 2017-07-05 09:40 qidadadadadada 阅读(99) 评论(0) 推荐(0)
摘要: JavaScript:写入 HTML 输出 document.write("Hello World"); JavaScript:对事件作出反应实例 <button type="button" onclick="alert('Hello World!')">这是什么!</button> alert() 阅读全文
posted @ 2017-07-05 09:21 qidadadadadada 阅读(104) 评论(0) 推荐(0)