jQuery bind(map)
bind(map)为每一个匹配元素一个或多个事件绑定事件处理器函数。
返回值 : jQuery
参数 :
map (map) : 一次可以绑定多个事件。
示例 :
一次绑定click和mouseenter事件。
jQuery 代码:
$('#foo').bind({
click: function() {
// do something on click
},
mouseenter: function() {
// do something on mouseenter
}
});
posted on 2011-02-20 14:33 GeorgeWang 阅读(282) 评论(0) 收藏 举报
浙公网安备 33010602011771号