Created
June 17, 2016 02:06
-
-
Save mactive/68c37a199ecb531e7240af2a62ff2d59 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
debugLog:function (message) { | |
if (Constants.DEBUG){ | |
if(console){ | |
// 获取调用函数的人 并插在第一个 | |
let callee = arguments.callee.caller.toString(); | |
var mainArguments = Array.prototype.slice.call(arguments); | |
mainArguments.unshift(callee); | |
console.log.apply(console, mainArguments); | |
} | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment