Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试使用 JQuery 更改 HTML
jQuery("#message").html() = "Done";
但控制台抱怨“未捕获的 ReferenceError:分配中的左侧无效”我怎样才能使它有效?
关闭,你想要
jQuery("#message").html("Done");
这是
$('#message').html('Done');
请阅读文档,您会感觉更好,至少您的代码...
要不就
$("#message").html("Done");
("#message").html("Done");