# getCountryString
获取国家码
# 调用方式
getCountryString()
1
返回 Promise,使用 then/catch 或 await 处理结果。
# 请求参数
无。
# 接口调用示例
this.$bridge.getCountryString()
1
# 返回参数
| Prop | Type | Default | Description |
|---|---|---|---|
| country_code | String | 国家码 |
# 接口返回示例
this.$bridge.getCountryString().then(data => {
this.countryData.country = data.country_code;
})
1
2
3
2
3