# isPluginFileExist

判断插件文件是否存在(^3.13.0版本支持)

# 调用方式

isPluginFileExist(params)
1

返回 Promise,使用 then/catch 或 await 处理结果。 接收单个业务参数;是否需要传参按下方参数表约定,无业务参数时可省略。具体字段及返回数据由宿主原生约定。

# 请求参数

Prop Type Required Default Description
modules Array Y - 模块名称数组

# 接口调用示例

this.$bridge.isPluginFileExist({
    modules: ['language', 'otherModule']
}).then(res => {
    // res 包含存在的模块列表
    console.log(res)
})
1
2
3
4
5
6

# 返回参数

返回 Promise;原生返回数据的字段由宿主决定,当前 JS 封装未限定完整结构。