上一页 1 ··· 9 10 11 12 13
摘要: 常见的方法 弹出框方法 alert():警告框 confirm():确认按钮和取消按钮的对话框 prompt():显示可提示用户输入的对话框 1 <script> 2 window.onload = function(){ 3 var bt = document.getElementById("bt 阅读全文
posted @ 2022-05-07 12:09 hi123hi159 阅读(234) 评论(0) 推荐(0)
摘要: 1.BOM 浏览器对象模型 把浏览器的各个组件拆分出来,每一个都封装成一个对象 分哪些部分? Navigator:浏览器对象 Window:浏览器窗口对象 Location:浏览器地址栏对象 History:浏览器历史栏对象 Screen:浏览器参数对象 Document:浏览器文档对象,单独一个, 阅读全文
posted @ 2022-05-07 11:17 hi123hi159 阅读(23) 评论(0) 推荐(0)
摘要: 事件处理(单击事件) 方式一:使用html中的事件属性 1 <script> 2 function aaa(){ 3 alert("欢迎"); 4 } 5 </script> 6 <input type="button" value="点我啊" onclick="aaa()"/> 方式二:使用JS原 阅读全文
posted @ 2022-05-07 10:52 hi123hi159 阅读(196) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13