解决方案 »

  1.   

    不懂什么意思?
    请查jquery的on方法...
    简单的说就是为.close绑定mouseover 处理方法在function里面.
      

  2.   

    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 );
    });
    },
      

  3.   

    谢谢楼上各位回答。基本懂了,由于之前没接触jquery1.10.