标签:net ogr div ica enc art highlight chrome rip
private openChrome(uri: any) { uri = uri.split(‘&‘).join(‘^&‘); // 转义 // ActiveObject仅在IE下可创建 需要在IE internet选项中配置安全级别才行具体详见百度 var objShell = new ActiveXObject("WScript.Shell"); // 注意这里是/c,不可使用/k,否则资源不会释放 双引号包起来转义空格 // var cmd = ‘cmd.exe /c start "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe" ‘ + uri; // var cmd = `cmd.exe /c start "" chrome.exe --kiosk --fullscreen --incognito ${uri}`; // var cmd = `cmd.exe /c start "" chrome.exe --fullscreen ${uri}`; var cmd = ‘cmd.exe /c start "" chrome.exe --fullscreen ‘ + uri; objShell.Run(cmd, 0, true); }
标签:net ogr div ica enc art highlight chrome rip
原文地址:https://www.cnblogs.com/jiaqi1719/p/14142502.html