Skip to content

Latest commit

 

History

History
50 lines (30 loc) · 1.1 KB

File metadata and controls

50 lines (30 loc) · 1.1 KB

Abstract 简介

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等)

example 例子

example

QR Code (可以使用手机扫描二维码)

use 使用

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]

API

name type defaultParams description
log function "" default log function
error function "" the color of text is red

change log

changeLog

License

MIT