# getLanguage

获取国家code语言code

# 调用方式

getLanguage(isShowLoading = false)
1

返回 Promise,使用 then/catch 或 await 处理结果。

# 请求参数

参数 类型 必填 默认值 说明
isShowLoading Boolean N false 查询期间是否显示 Loading

# 接口调用示例

this.$bridge.getLanguage(false)
  .then(res => {
    console.log(res)
  })
  .catch(error => {
    console.error(error)
  })
1
2
3
4
5
6
7

# 返回参数

字段 类型 说明
language String 语言码
country String 国家码

# 注意事项

返回 Promise。默认不显示 Loading;请求失败或返回值解析失败时进入 catch。