JavaScript的六大作用

首先講javaScript的擺放位置:<script> 與 </script> 可以放在head和body之間,也可以body中或者head中 JavaScript的六大作用: 1直接在script輸出 1 document.write( "<h1>This is a heading</h1>" ); //document.write表輸出,括號中h1標籤同樣有效 2對事件作出反應 1 <butt
相關文章
相關標籤/搜索