摘要: String.prototype.isEmpty = function () { var s1 = this.replace(/[\r\n]/g, '').replace(/[ ]/g, ''), s2 = (s1 == '') ? true : false; return s2; }; $(this).html().isEmpty(); 阅读全文
posted @ 2017-12-22 17:11 不一样的开始 阅读(1195) 评论(0) 推荐(0) 编辑
摘要: //这样写没有效果 $(".xx").clcik(function(){····}); //改成这样写 $(document).on('click', '.xxx', function(e){ }); 阅读全文
posted @ 2017-12-22 16:36 不一样的开始 阅读(7998) 评论(0) 推荐(0) 编辑