在Javascript中“清楚”是一个保留词吗?
<head> <script type="text/javascript" src="Array.js"></script></head><body> Hello!!!!<br> <button type="button" onClick="clear()" id="ppp">Shoo!</button><br> <button type="button" onClick="add()" id="add">Add a few elements</button><br> <button type="button" onClick="check()" id="check">Check the array</button><br> <p id="results">Results will appear here.</p> <script type="text/javascript">initialize(); </script></body>
var results;function initialize(){ results = document.getElementById("results");}function add() {results.firstChild.data="add"; }function clear() {results.firstChild.data = "Hello?";}function check() {results.firstChild.data = "check";}
回首忆惘然
DIEA
相关分类