哪里缺少分号?
Where is there a missing semicolon?
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);
}
}
"missing semicolon"?在哪里?
这里:
window.onunload = function() {
window.clearInterval(poll);
} <--------
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);
}
}
"missing semicolon"?在哪里?
这里:
window.onunload = function() {
window.clearInterval(poll);
} <--------