在手机上打印调试信息。
debug.success("This is success message:)");
debug.error("This is error message:)");
debug.log("This is primary message:)");
debug.log({a: 1, b: 2});
debug.log([1,2,3]);
http://binnng.github.io/debug.js/demo/index.html
- bower
bower install binnng/debug.js
- component
component install binnng/debug.js
如果你使用angular:
var app = angular.module("app", [
"binnng/debug"
]);
app.controller("ctrl", function($debug) {
$debug.success("Welcome to debug.js");
});
http://binnng.github.io/debug.js
http://binnng.github.io/debug.js/docs/debug.html
MIT