摘要: jQuery事件绑定 js中绑定事件,三种方式: 方式1: 直接在元素上,增加onXxx事件属性. <button onclick="alert(1);">点我</button>方式2:获取元素对象,再设置onXxx事件属性. <button id="btn">点我</button> documen 阅读全文
posted @ 2019-01-19 22:05 松鼠航 阅读(540) 评论(0) 推荐(0) 编辑