小程序Url Link跳转怎么获取query参数?

onLoad(options){
  if (options) {
    let value1 = decodeURIComponent(options.value1)
    let value2 = decodeURIComponent(options.value2)
    ...调用后台接口查询数据
  }
}

我是通过这种方式接收参数的,如果想验证可以通过编译器模拟:

猜你喜欢

转载自blog.csdn.net/m0_57033755/article/details/131727302