$(document).on("mouseover",".close",function()什么意思?怎么调用? jquerymouseover 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不懂什么意思?请查jquery的on方法...简单的说就是为.close绑定mouseover 处理方法在function里面. on: function( types, selector, data, fn, /*INTERNAL*/ one ) { var type, origFn; // Types can be a map of types/handlers if ( typeof types === "object" ) { // ( types-Object, selector, data ) if ( typeof selector !== "string" ) { // ( types-Object, data ) data = data || selector; selector = undefined; } for ( type in types ) { this.on( type, selector, data, types[ type ], one ); } return this; } if ( data == null && fn == null ) { // ( types, fn ) fn = selector; data = selector = undefined; } else if ( fn == null ) { if ( typeof selector === "string" ) { // ( types, selector, fn ) fn = data; data = undefined; } else { // ( types, data, fn ) fn = data; data = selector; selector = undefined; } } if ( fn === false ) { fn = returnFalse; } else if ( !fn ) { return this; } if ( one === 1 ) { origFn = fn; fn = function( event ) { // Can use an empty set, since event contains the info jQuery().off( event ); return origFn.apply( this, arguments ); }; // Use same guid so caller can remove using origFn fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); } return this.each( function() { jQuery.event.add( this, types, fn, data, selector ); }); }, 谢谢楼上各位回答。基本懂了,由于之前没接触jquery1.10. js/jquery怎样使弹出菜单/层竖着从中间向两边展开 在vs2008中需要导入extjs4的哪些类库 点击事件是onClick(),那么hover事件呢?具体是如何写? 正则表达式[.\n]与[\s\S]的区别是什么? 我的代码中究竟哪里有错? js定义的变量传到action里 下面的为何不生效? 在单击id="txs"中任意一格或多格时,如何将id="mtxs"中的所有格(因单击id="txs"中的onclick产生的背景色)全部清除掉?谢谢。 请问如何只打开一个窗口 <!--与//-->请问这有什么作用?? Ext.decode无法解析json中html文本 怎么知道点了哪个?
请查jquery的on方法...
简单的说就是为.close绑定mouseover 处理方法在function里面.
var type, origFn; // Types can be a map of types/handlers
if ( typeof types === "object" ) {
// ( types-Object, selector, data )
if ( typeof selector !== "string" ) {
// ( types-Object, data )
data = data || selector;
selector = undefined;
}
for ( type in types ) {
this.on( type, selector, data, types[ type ], one );
}
return this;
} if ( data == null && fn == null ) {
// ( types, fn )
fn = selector;
data = selector = undefined;
} else if ( fn == null ) {
if ( typeof selector === "string" ) {
// ( types, selector, fn )
fn = data;
data = undefined;
} else {
// ( types, data, fn )
fn = data;
data = selector;
selector = undefined;
}
}
if ( fn === false ) {
fn = returnFalse;
} else if ( !fn ) {
return this;
} if ( one === 1 ) {
origFn = fn;
fn = function( event ) {
// Can use an empty set, since event contains the info
jQuery().off( event );
return origFn.apply( this, arguments );
};
// Use same guid so caller can remove using origFn
fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
}
return this.each( function() {
jQuery.event.add( this, types, fn, data, selector );
});
},