jquery下简化 console.log 的写法

时间:2014-06-15 23:43:13   收藏:0   阅读:410
window.ll = function f() {
    ll.history = ll.history || [];
    ll.history.push(arguments);
    if (this.console) {
        var a = arguments, c;
        try {
            a.callee = f.caller;
        } catch (b) {}
        c = [].slice.call(a);
        if (typeof console.log === "object") {
            log.apply.call(console.log, console, c);
        } else {
            console.log.apply(console, c);
        }
    }
};

 

jquery下简化 console.log 的写法

 

jquery下简化 console.log 的写法,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!