String.prototype.isEmpty = function () { ?var s1 = this.replace(/[\r\n]/g, ‘‘).replace(/[ ]/g, ‘‘), ?????s2 = (s1 == ‘‘) ? true : false; ?return s2;};
$(this).html().isEmpty();
js中判断 .html() 是否为空
原文地址:http://www.cnblogs.com/zjj1990/p/8086910.html
String.prototype.isEmpty = function () { ?var s1 = this.replace(/[\r\n]/g, ‘‘).replace(/[ ]/g, ‘‘), ?????s2 = (s1 == ‘‘) ? true : false; ?return s2;};
$(this).html().isEmpty();
js中判断 .html() 是否为空
原文地址:http://www.cnblogs.com/zjj1990/p/8086910.html