0

我的一个网站在 Internet Explorer 7 或 8 中无法正常运行(在现代浏览器中很好)。

网站上有一个部分以 jQuery lightview 模式启动预订引擎,但控制台中返回以下错误 - 有什么想法吗?

SCRIPT5007: The value of the property 'isEmpty' is null or undefined, not a Function
object jquery.min.js, line 3 character 4295
4

1 回答 1

1

您应该使用jQuery.isEmptyObject()来检查对象或使用空选择器,例如

$("p:empty");

如果你还没有声明一个“isEmpty”函数,那么你可以使用这个:

function isEmpty(aString) { 
    return (aString === null || aString === "" || typeof aString === 'undefined');
}
于 2013-04-17T14:05:07.917 回答