mouseenter与mouseleave 预绑定事件

    $('#order').on("mouseenter",".addC",function(){
            if($(this).find("input").hasClass("addColor")){
                $(this).find("p").css("display", "block");
            }
        
    });
    $('#order').on("mouseleave",".addC",function(){
        $(this).find("p").css("display", "none");
    });

猜你喜欢

转载自turbo12138.iteye.com/blog/2398937