【发布时间】:2014-01-23 10:22:30
【问题描述】:
我刚写了这段代码,当我测试它时,javascript 不起作用。 我启用了 javascript,我尝试使用不同的代码并且它有效。我认为可能存在错误,但我看不到。
<!DOCTYPE html>
<html>
<body>
<p id=“id”>Some Text</p>
<script>
document.getElementById(“id”).innerHTML=“Different Text”;
</script>
</body>
</html>
【问题讨论】:
-
您是否复制/粘贴了该代码?我什至在键盘上都找不到智能引号。
-
是的,我是从原始文件中复制的。
标签: javascript html