在线工具

2017-08-12     16

今天使用node.js,发现在链接成功后,在使用ws.send()出现以下错误: javascript InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable 解决方法: 把ws.send()写到ws.onopen事件里,就可以了

2017-08-16     28

今天使用node index.js的时候,出现以下错误: js events.js:141 throw er; // Unhandled 'error' event ^ Error: listen EADDRINUSE 0.0.0.0:8686 at Object.exports._errnoException (util.js:870:11) at exp

2018-03-04     8

查看CentOS版本 linux # rpm -q centos-release centos-release-6-8.el6.centos.12.3.x86_64 安装epel源 32位系统选择: rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm rpm -ivh http:/

2018-05-09     2

nodejs function getIPAdress(){ var interfaces = require('os').networkInterfaces(); for(var devName in interfaces){ var iface = interfaces[devName]; for(var i=0;i