摘要: window.onload = function() { var oneClick = function() { alert("第一个事件"); }; var twoClick = function() { alert("第二个事件"); }; var threeClick = function() 阅读全文
posted @ 2017-08-31 16:15 ermao的博客 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 页面跳转,cookie存储参数 1,设置cookie function setCookie(name,value) { var Days = 30; var exp = new Date(); exp.setTime(exp.getTime() + Days*24*60*60*1000); docu 阅读全文
posted @ 2017-08-31 15:17 ermao的博客 阅读(222) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript"> function Car(color, doors, wheels) { //创建一个类 this.color = color; //类属性 this.doors = doors; this.wheels = wheels; this. 阅读全文
posted @ 2017-08-31 14:59 ermao的博客 阅读(198) 评论(0) 推荐(0) 编辑