[求助] 实话我学了没多久,但这句语句我是真没get到为什么要这样
javascript吧
全部回复
仅看楼主
level 3
shm248 楼主
求助大神,
请问这到底是什么原因要写这么长,一行里的2个判断都是为什么要这样判断呢?
document.onmousemove = function(e) {
curX = (window.Event) ? e.pageX : e.clientX + (document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft);
curY = (window.Event) ? e.pageY : e.clientY + (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop);
}
2022年11月21日 15点11分 1
level 1
ie兼容
2022年11月22日 00点11分 2
原来如此 话说ie还不死
2022年11月22日 13点11分
1