JSLint声称此处缺少分号:
if ('onhashchange' in window && (docmode === undefined || docmode > 7 )) {
window.onhashchange = expandFromLocation;
}
// IE7 doesn't support the hashchange event so we fall back to standard polling technique
else {
poll = window.setInterval(checkHash, 500);
// Clean-up objects as IE7 has hideous performance
window.onunload = function() {
window.clearInterval(poll);
}
}
"缺少分号"?在哪里?
答案 0 :(得分:2)
下面:
window.onunload = function() {
window.clearInterval(poll);
} <--------