window.onunload = afterInput; function afterInput() { try { alert("123456"); top.opener.afterInput(); }catch(e) { } } head中用這樣一段JS代碼,當頁面關閉時,觸發afterInput頁面彈出123456為什么這樣可以調用afterInput()?。糠椒ǖ恼{用不是方法名+() 嗎?
JavaScript方法調用
慕婉清6462132
2018-09-05 09:13:41
