摘要:
JS当中动态注册事件,可以有好几种方式,但兼容性最好的是以下的方式://elementid:要注册事件的HTML控件的ID//type:注册事件的名称,(例如:blur focus focusin focusout load resize scroll unload click dblclick " + "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " + "change select submit keydown keypress keyup error)// 阅读全文