MobileConsole是用在移动端的小工具,可以模拟PC浏览器的console进行debug.
var mc = new MobileConsole();
mc.init(90);
mc.log("Array",[11,22,'javascript is a good language']);
mc.log("Object",{dept:'taobao UED', year:2013, array:[1111, 1212, '呵呵',{maomao:'一师是个好学校', huanhuan:'这真真是极好的'}]});
mc.log({str:'a String',arr:[100, 500, {num:2046,strs:'another String'}]})
mc.log("DOM Element", document.getElementById("J_test"));
//添加参数 'degree', 'pc'
var mConsole = new KMobileConsole(90, 'pc')
- iOS 6 +
- Android 4+