首頁 > 問答 > 主體
test.html 裡呼叫到2個js檔 a.js和b.js:
a.js 檔案裡有個
function test(){ console.log(1); }
現在想在b.js裡為 test function 增加一個
console.log(2);
目標要做到無論在哪裡呼叫test()都要輸出1和2,該怎麼寫啊
巴扎黑2017-05-18 10:51:31
雷雷
//測驗();