(@_@;)我是程序猿,我编程,我快乐,知识改变命运,技术成就梦想   oh yeah!合作VX "w6668263" 联系Email:ye583025823@126.com

关于bootstrap-datetimepicker.js不支持IE8的解决办法

    if (!Array.prototype.indexOf)

        Array.prototype.indexOf = function (elt /*, from*/) {
            var len = this.length >>> 0;

            var from = Number(arguments[1]) || 0;
            from = (from < 0)
                    ? Math.ceil(from)
                    : Math.floor(from);
            if (from < 0)
                from += len;

            for (; from < len; from++) {
                if (from in this &&
                        this[from] === elt)
                    return from;
            }
            return -1;
        };

 

 

 

技术交流QQ群: 15129679

posted on 2016-07-26 10:34  一个草率的龙果果  阅读(2449)  评论(0编辑  收藏  举报

导航