正常的在js文件中寫一個函數 function test alert 這樣是調用不到的 只有這樣聲明才能調用到 test function alert 可以調用 然后在 html 頁面中 lt script gt test 這樣就調用成功了 lt script gt html頁面調用js文件里的函數,寫法必須為test function 形式,其他方式寫無用。 ...
2018-09-17 00:36 0 6974 推薦指數:
查看詳情