将本文档中两种结合JS https://help.fanruan.com/finereport/doc-view-920.html setTimeout(function() {$("span.linkspan").bind("click",function() {$(this).css("color", "red");})}, 100); //点击变色 setTimeout(function() {$("span.linkspan").mouseover(function() {$(this).css("color", "red");}) //悬浮变色$("span.linkspan").mouseleave(function() {$(this).css("color", "blue");}) //离开恢复}, 100); 例: setTimeout(function() {$("span.linkspan").bind("click",function() {$(this).css("color", "red");})}, 100) //点击变色 $("span.linkspan").mouseleave(function() {$(this).css("color", "blue");}) //离开恢复}, 100); 会报错 |
最佳回答 |
||||
0
|
|