解析后台参数

onLoad: function (options) {
    console.log(options, 'options')
    wx.setNavigationBarTitle({
      title: '绑定二维码',
      success: function (res) {
        // success
      }
    })
    let scene = decodeURIComponent(options.scene)
    let key = scene.split('=')[0]
    let value = scene.split('=')[1]
    console.log(scene, key, value,'sad')
    this.setData({
      key: key, //绑定的值和参
      value: value,
    })

  },

 

上一篇:2021_基础


下一篇:Scene Text Detection and Recognition