# getWeexPath

获取当前weex页面的根路径

# 调用方式

getWeexPath()
1

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

# 请求参数

无。

# 接口调用示例

this.$bridge.getWeexPath();
1

# 返回参数

Prop Type Default Description
weexPath String 根路径

# 接口返回示例

this.$bridge.getWeexPath().then(res => {
  console.log(res.weexPath);
});
1
2
3