84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
启动项目:
node app.js
在app.js中,如何让node去打开当前系统中已经安装的atom编辑器?
在npm中找到一个包,是可以打开指定浏览器,还是不能打开指定应用程序
//自动打开chrome浏览器 var opn=require('opn'); opn('http://localhost:8080', {app: 'chrome'});
认证0级讲师
var exec = require('child_process').execFile; var fun =function(){ console.log("fun() start"); exec('atom.exe', function(err, data) { console.log(err) console.log(data.toString()); }); } fun();
https://nodejs.org/api/child_...
https://nodejs.org/api/child_...