jquery下简化 console.log 的写法

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 的写法

 

posted @ 2014-06-13 09:35  大大大志  阅读(2086)  评论(0)    收藏  举报