0
工作後退按鈕在Chrome中,當我第一次加載與下面的代碼的網頁,我得到的控制檯消息document.addeventlistener JavaScript代碼在Chrome
if (document.addEventListener){
console.log("asf");
document.addEventListener('mousemove', abc, false);
} else if (document.attachEvent){
console.log("as1f");
document.attachEvent('onmousemove', abc);
}
但每當我去旁邊頁/訪問上面的代碼,並按回來按鈕重訪頁面我沒有得到控制檯消息。