摘要: name和value: 例如: <input type="text" name="txt"/> name用于定义这个input收到的值的变量名,在上面的input输入“hello",那么就有txt="hello";用于dom操作取值 在用js改变某个div属性进行传值操作时,div其实可以用name 阅读全文
posted @ 2019-06-15 15:28 volition丶L 阅读(324) 评论(0) 推荐(0) 编辑
摘要: JavaScript 输出 javascript 没有任何打印或输出的函数 可以通过不同的方式输出数据 使用window.alert() 弹出警告框 使用document.write()方法将内容写到html文档中 使用document.getElementById("").innerHtml="需 阅读全文
posted @ 2019-06-15 15:04 volition丶L 阅读(605) 评论(0) 推荐(0) 编辑
摘要: window.onload=function () { var alogo =document.getElementById("logo") var aa = ["./img/cd3e871466f03e864f08e12cd372bcc9.jpeg", "./img/b27b4f1f0b212f503cbb24011dc8f7e6.jpeg", ... 阅读全文
posted @ 2019-06-15 14:42 volition丶L 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 鼠标经过事件,当鼠标移到一个对象上时,该对象就触发onclick事件,并执行onclick事件调用的程序。 现实鼠标点击 按钮时,触发onclick事件, 阅读全文
posted @ 2019-06-15 11:36 volition丶L 阅读(458) 评论(0) 推荐(0) 编辑
摘要: 鼠标经过事件,当鼠标移到一个对象上时,该对象就触发onmouseover事件,并执行onmouseover事件调用的程序。 现实鼠标经过"确定"按钮时,触发onmouseover事件, 阅读全文
posted @ 2019-06-15 10:34 volition丶L 阅读(575) 评论(0) 推荐(0) 编辑