jQuery MouseOut触发mouseEnter

时间:2017-01-13 15:01:15

标签: jquery html

我有一个简单的鼠标代码,附加;WITH E1(N) AS (SELECT * FROM (VALUES (1),(1),(1),(1),(1),(1),(1),(1),(1),(1)) tc (N)), --10E+1 or 10 rows E2(N) AS (SELECT 1 FROM E1 a CROSS JOIN E1 b), --10E+2 or 100 rows E4(N) AS (SELECT 1 FROM E2 a CROSS JOIN E2 b), --10E+4 or 10,000 rows max --E5(N) AS (SELECT 1 FROM E4 a CROSS JOIN E1 b), -- 10000 * 10 = 100000 cte(NUM) AS (SELECT ItemNumber = Row_number()OVER(ORDER BY N) FROM E4) SELECT * FROM cte c WHERE NOT EXISTS (SELECT 1 FROM table t WHERE c.num = t.index) ORDER BY c.num

我还有div的脚本,但它会在mouseout

上触发

Demo

mouseenter

2 个答案:

答案 0 :(得分:1)

代码是

$( ".actipntrg" ).on( "mouseleave" , function() { $(this).remove(); }); });

答案 1 :(得分:1)

将“mouseout”更改为“mouseleave”,它应该可以正常工作。所以你有这个。

$( ".actipntrg" ).on( "mouseleave" , function() {
    $(this).remove();
});