Nodejs Api best practice and core components
引入最佳实践类库 in package.json
"dependencies": {
"node-api-base" : "git@github.com:zdix/node-api-best-practice.git"
}
test/node.spider.test.js
test/ejs.test.js
client.js
, server.js
socket.io.js
var mysqlClient = Mysql.client();
function get() {
mysqlClient.select('*').from('open_app').where({id: 1}).first().then(openApp => {
Log.i(Util.getFormattedJson(openApp));
})
}
test/dns.test.js
test/img.base64.test.js
test/tcp/*
调用chrome浏览器的API
- 一般用于打开指定页面然后进行截屏生成图像,或者生成pdf