标签: jquery
我正在使用库isInViewport,我第8行收到Expected identifier错误。
Expected identifier
https://github.com/zeusdeux/isInViewport/blob/master/lib/isInViewport.js#L8
我真的很困惑,为什么这是一个问题,因为它只是
$.fn.do
我在尝试使用jQuery.do
jQuery.do
知道发生了什么事吗?
答案 0 :(得分:2)
do是JavaScript中的reserved keyword。实际上,我很惊讶,其他浏览器让它滑倒。
do