Stay Hungry,Stay Foolish!

摘要: 原生JS通过什么方法绑定click事件? 原生js有一下三种方法为DOM对象绑定click事件, 第一种,在html中添加 onclick属性,在此属性中添加要绑定的事件函数,如下, 这种方法为html处理事件的原始方法,使得html和js过分耦合, 即表现层代码 和 行为层代码耦合: ... 阅读全文
posted @ 2014-10-23 00:09 lightsong 阅读(8016) 评论(0) 推荐(0) 编辑
Life Is Short, We Need Ship To Travel