JavaScript學習總結

JavaScript代碼的書寫方式javascript 一、和HTML代碼寫在一塊兒html <input type="button" οnclick="alert('hello world')" value="我是一個按鈕"></input>   <script> alert("hello world"); </script> 二、將JavaScript代碼單獨寫在一個.js文件中,而後在HTM
相關文章
相關標籤/搜索