//edge 应用程序 import chrome.path; import chrome.app; namespace chrome.edge; class app{ ctor(winform){ var path = ..chrome.edge.getPath(); if(path) this = ..chrome.app(winform,path); else { return null; } }; } getPath = function(){ if(!_WIN7_LATER) return; var path = ..chrome.path.findPath({"msedge.exe"}) if(_WIN10_LATER && (!path)){ ..chrome.path.installChrome(); path = ..chrome.path.findPath({"msedge.exe"}) } return path; } /**intellisense() chrome.edge.app = 调用系统已安装的 Edge Chromium 创建应用程序,\n如果没有该浏览器会自动下载安装,\n仅支持 Win10 以及 Win10 以后的系统,不支持 Win XP。\nWin7 必须自行安装 Edge Chromium 109 ,无法自动安装 chrome.edge.app(.(父窗口) = 调用系统已安装的 Edge Chromium 创建应用程序,\n如果没有该浏览器会自动下载安装\n!processchromeapp. chrome.edge.app() = !processchromeapp. chrome.edge.getPath() = 返回Edge Chromium路径,\n如果没有该浏览器会自动下载安装 end intellisense**/