哪里少了分号?
Posted
技术标签:
【中文标题】哪里少了分号?【英文标题】:Where is there a missing semicolon? 【发布时间】:2015-05-18 21:04:17 【问题描述】: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);
“缺少分号”?在哪里?
【问题讨论】:
【参考方案1】:这里:
window.onunload = function()
window.clearInterval(poll);
<--------
【讨论】:
以上是关于哪里少了分号?的主要内容,如果未能解决你的问题,请参考以下文章