log for webView & webApp
A tool imitate the browser console on webView or webApp;
No depend other plugin of javascript(no jquery);
用于webView和webApp的log工具
模拟浏览器的控制台的log功能,可用于webView或者webApp;
不依赖其他js插件(如jquery等)
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 |