PluginUpdateManager.onCheckForUpdate 监听函数 微信小程序插件:不支持 功能描述 监听向微信后台请求检查插件更新结果事件。微信在微信小程序每次启动(包括热启动)时自动检查插件更新,不需由开发者主动触发。 参数 function listener 向微信后台请求检查插件更新结果事件的监听函数 参数 Object res 属性 类型 说明 hasUpdate boolean 是否有插件新版本 pluginVersion string 插件新版本号。仅当 hasUpdate 为 true 时返回