【发布时间】:2016-04-02 10:30:54
【问题描述】:
我无法让我的代码正常工作,我不知道为什么。 这是 jsfiddle 的链接。
$(document).ready(funciton() {
$("button").click(function() {
$("h1").css("color", "red");
});
});
<h1>
Testing123
</h1>
<button>
Make the h1 red
</button>
【问题讨论】:
-
它可以工作,你只需要包含 jQuery 库。 jsfiddle.net/azizn/m76npdc2/1
-
你拼错了函数。