test.html 裡呼叫到2個(gè)js檔 a.js和b.js:
a.js 檔案裡有個(gè)
function test(){ console.log(1); }
現(xiàn)在想在b.js裡為 test function 增加一個(gè)
console.log(2);
目標(biāo)要做到無(wú)論在哪裡呼叫test()都要輸出1和2,該怎麼寫(xiě)啊
雷雷
//測(cè)驗(yàn)();