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,該怎麼寫啊
雷雷
//測驗();
雷雷
//
測驗();