测试
全部博文(931)
发布时间:2019-05-26 09:35:18
var config = require("./mcConfig"); var request = require('request'); var url = config.tokenURL; console.log("user: " + config.user + " password: " + config.password); var getTokenOptions = { url: url, method: "GET", json:true, headers: { 'Authorization': 'Basic ' + new Buffer(config.user + ":" + co.........【阅读全文】
发布时间:2019-05-26 08:52:40
代码如下:我在nodejs代码里把需要更改的字段值赋为"Jerry测试1”:要获取更多Jerry的原创文章,请关注公众号"汪子熙":......【阅读全文】
发布时间:2019-05-12 22:45:16
Visual Studio Code的调试配置里定义了两种类型,attach和launch。Visual Studio Code的官方文档对这两种调试启动行为的解释:Launch的意思简而言之就是以debug模式启动app。而Attach的含义是将Visual Studio Code的调试器绑定到一个已经处于运行状态的应用。{ //.........【阅读全文】
发布时间:2019-05-11 12:22:48
const WSServer = require("./server.js"); var counter = 0; function createWebsocket() { var host = "127.0.0.1"; var port = "9999"; var wsServer = WSServer.startServer(host, port); console.log("WebSocket server listens to: " + host + ":" + port); wsServer.on('open', (data) => { console.log('WS Clie.........【阅读全文】