log for webView & appWeb
var msLog = new MagicSquareLog();
msLog.log(11111);
// 11111
msLog.log([1,2,3]);
// [1,2,3]
msLog.error(11111, "I am the log", {name: "msLog"}, [1,2,3]);
//11111 I am the log {"name":"msLog"} [1,2,3]
name | type | defaultParams | description |
---|---|---|---|
log | function | "" | default log function |
error | function | "" | the color of text is red |