UNI-APP_uni-app如何获取manifest.json数据

uniapp获取manifest.json的信息到页面呈现!比如获取当前版本号呈现到升级页!应用介绍等信息

plus.runtime.getProperty(plus.runtime.appid, (wgtInfo)=> {
   	let version = wgtInfo.version;  //例子:获取版本号
    console.log("launchLoadedTime: " + plus.runtime.launchLoadedTime);
    console.log("launcher: " + plus.runtime.launcher);
    console.log("appId: " + wgtInfo.appid);
    console.log("version: " + wgtInfo.version);
    console.log("code: " + wgtInfo.version.code);
    console.log("innerVersion:" + plus.runtime.innerVersion);
    console.log("name: " + wgtInfo.name);
    console.log("description: " + wgtInfo.description);
    console.log("author: " + wgtInfo.author);
    console.log("license: " + wgtInfo.license);
    console.log("licensehref: " + wgtInfo.licensehref);
    console.log("features: " + wgtInfo.features);
   });

你可能感兴趣的:(#,UNI-APP)