未捕获的TypeError:对象函数(arg1,arg2)没有方法’apply’
我想将一个单击事件从一个元素复制到另一个元素我正在执行以下mannner,它不起作用
var arr = $("#engagement_box_content_generic_mention>.data_box>.load_mentions_data_box"); $.each ( arr , function( key , value){ console.log( $(this).attr("onclick") ); if ( key == 0 ) { $("#abc").click( $(this).attr('onclick') ); } });
console.log给我这样的print_1317(1317,201205,24,11,’no’);
但当我点击应用元素abc时,它会给出错误
Uncaught TypeError: Object print_1317(1317, 201205, 24, 11, 'no'); has no method 'apply'
提前致谢