摘要:
在项目中,需要设置页面title 我使用jQuery('title').html()这个方法在ie8中报错“SCRIPT65535: 意外地调用了方法或属性访问。 ”经查询:使用document.title="title content" 代替jQuery('title').html("title ... 阅读全文
摘要:
判断数组是否支持indexOfif (!Array.prototype.indexOf){ Array.prototype.indexOf = function(elt /*, from*/) { var len = this.length >>> 0; var from = Number(argu... 阅读全文