【前端】jquery事件

$(".XXX").on({
	"click": function() {
		 
	},
	"mouseover": function() {
		 
	},
	"mouseout": function() {
		 
	}
});  

$(this).css("background", "#fff");

$(".xxx").css("color", "#434343");

$(this).removeClass("sss");

$(this).hasClass("sss");

$(this).addClass("sss");

$(".xxx").hide();

$(".xxx").attr("src", "xxx.png");
var id = $(".xxx").attr("id");

$(".xxx").css("display") == 'none'

$(".xxx").empty();

$.each(aList, function(i, item) {
if (item.code!= 101) {
str = str  + item.code;
}
});

$(".xxx").append(str);
$(".xxx").trigger("click");
$(this).attr("style", "color: rgb(0, 49, 255);");

  

posted @ 2020-10-05 21:06  咸鱼翻身  阅读(182)  评论(0编辑  收藏  举报