page.query

解释:页面参数。

  1. page.query: Object

示例代码

  1. automator.launch().then(async smartProgram => {
  2. const page = await smartProgram.navigateTo('/pages/icon/icon?foo=bar');
  3. // {foo: 'bar'}
  4. console.log(page.query);
  5. });