解决jquery-easyui1.3.3 combobox 多选模式不兼容IE8问题

时间:2014-08-29 12:44:17   收藏:0   阅读:371

扩展Array的原型对象,加入indexOf方法

if(!Array.prototype.indexOf){
    Array.prototype.indexOf = function(target){
        for(var i=0,l=this.length;i<l;i++){
            if(this[i] === target) return i;
        }
        return -1;
    };
}

 

参考http://blog.csdn.net/a9529lty/article/details/9668071

原文:http://www.cnblogs.com/huige-you/p/3944602.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!