
JS
JSonapp.onLaunched = function(options){ this.viewports[0].defaultBrowserAction.openExternal({ url: "path/to/your/file", openExternal: true });}以上代码会在WPS默认打开方式时自动打开指定的文件路径。其中,"path/to/your/file"是你想要设定的默认文件路径。请根据具体需求修改该路径,并保存配置。另外,在修改完app.JSon后,还需要重新启动WPS才能生效。Copyright © 2025 IZhiDa.com All Rights Reserved.
知答 版权所有 粤ICP备2023042255号