You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
最后生成的目标文件打开时,windows提示未创建关联,我分别尝试了用chrome关联html和js,系统仍旧弹框无法打开文件,只有每次去复制命令行里的url。有时候复制粘贴还总是不生效……气得我去看了下源码
var open = require('open')
...
function open_html_file(filename) {
open(filename)
return true
}
看到也是调用第三方包open我就懒得折腾了,直接搜了下如何将字符串复制粘贴至剪切板,于是增加了一行下面代码,失败就失败吧,总算没那么痛苦了。 require('child_process').spawn('clip').stdin.end(filename);
The text was updated successfully, but these errors were encountered:
最后生成的目标文件打开时,windows提示未创建关联,我分别尝试了用chrome关联html和js,系统仍旧弹框无法打开文件,只有每次去复制命令行里的url。有时候复制粘贴还总是不生效……气得我去看了下源码
var open = require('open')
...
function open_html_file(filename) {
open(filename)
return true
}
看到也是调用第三方包open我就懒得折腾了,直接搜了下如何将字符串复制粘贴至剪切板,于是增加了一行下面代码,失败就失败吧,总算没那么痛苦了。
require('child_process').spawn('clip').stdin.end(filename);
The text was updated successfully, but these errors were encountered: