项目中有个需求,数据加载完成后,默认模拟点击某个元素节点(选中某个元素节点)并触发事件 $('.course_list dd').on('click', function () { //取当前节点的某个属性值. var id = $(this).attr('data-id'); //处理其他业务 }); $('.course_list li').on('click', function () { //取当前节点的某个属性值. var id = $(this).attr('data
jquery批量绑定click事件: var selects = $(".public_select dd ul li"); debugger; /*$(".public_select dd ul li a").each(function(){ /!*$(this).click(function(){ alert("aa"); })*!/ alert("cc"); $(this).bind("click",
js trigger click event & dispatchEvent & svg element but svg element not support trigger click event in js dispatchEvent & click event https://stackoverflow.com/questions/49834459/programmatically-trigger-click-event-in-svg-rect-element svg do