阅读(3086) (21)

百度智能小程序 页面路径

2020-09-04 14:48:05 更新

page.path

解释:页面路径。

page.path: string

示例代码:

automator.launch().then(async smartProgram => {
    await smartProgram.reLaunch('/pages/api/api');
    const page = await smartProgram.currentPage();
    console.log(page.path) // pages/api/api
});