【发布时间】:2015-09-20 20:12:36
【问题描述】:
$(".typeofcontent").on({
$(".typeofcontent").hover(function() {
$(this).css("color", "#f9d58e");
});
}
此 jQuery 代码不执行设置类名为 typeofcontent 的元素的 CSS 颜色的命令。相反,它没有给出控制台错误代码并且根本不执行。你介意解释一下我做错了什么吗?
【问题讨论】:
标签: jquery css jquery-selectors jquery-events