1 Star 0 Fork 50

lvhaiyan888 / HorseJs

forked from horsejs / HorseJs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Info.md 758 Bytes
一键复制 编辑 原始数据 按行查看 历史

获取应用程序的信息

此方法返回的就是配置文件提供的信息

let result = await horse.info.getAppInfo();
console.log(result.data);
//{"appName":"HorseJs","autoShowFirstWindow":true,"sizeConfig":{"maxSize":{"height":-1,"width":-1},"miniSize":{"height":300,"width":400},"startSize":{"height":600,"width":800}},"startPath":"app/index.html","version":"0.0.1"}

获取 HorseJs 框架的信息

目前仅返回 HorseJs 的版本号

let result = await horse.info.getHorseInfo();
console.log(result.data);
//{"HorseJsVersion":"0.0.2"}

获取系统信息

let result = await horse.info.getOSInfo();
console.log(result);
// {"arch":"64 bit","name":"Windows","version":[10,0,16299]}
C++
1
https://gitee.com/lvhaiyan/horsejs.git
git@gitee.com:lvhaiyan/horsejs.git
lvhaiyan
horsejs
HorseJs
master

搜索帮助