摘要: 无论是 <button type="button" onclick="console.log('123');">123</button> 还是 <a href="#" onclick="console.log('123');">测试链接</a> 在点击并且触发完事件后,当我们继续按下enter键时。 阅读全文
posted @ 2016-09-27 14:26 贝尔塔猫 阅读(825) 评论(0) 推荐(0)
摘要: var wrap=document.createElement("div"); var first=document.body.firstChild;//得到页面的第一个元素 var wraphtml=document.body.insertBefore(wrap,first); 阅读全文
posted @ 2016-09-27 10:35 贝尔塔猫 阅读(9147) 评论(0) 推荐(0)