标签:function -- tom enter trigger .text cti events 解析
//trigger $(‘#foo‘).on(‘click‘, function() { alert($(this).text()); }); $(‘#foo‘).trigger(‘click‘); $(‘#foo‘).on(‘custom‘, function(event, param1, param2) { alert(param1 + "\n" + param2); }); $(‘#foo‘).trigger(‘custom‘, [‘Custom‘, ‘Event‘]);
var data = { id: 5, name: "张三" }; var events = { "mouseenter": function(event){ $(this).html( "你好," + event.data.name + "!"); }, "mouseleave": function(event){ $(this).html( "再见!"); } }; //为n5绑定mouseenter mouseleave两个事件,并为其传入附加数据data $("body").on(events, "#n5", data);
轮播插件unsilder 源码解析(一)--之jquey的深入
标签:function -- tom enter trigger .text cti events 解析
原文地址:http://www.cnblogs.com/heyinwangchuan/p/6239076.html