onLoad: function (options) {var that = this;if (options.id == '0') {console.log('无传入值,不是经过扫码进入的。)that.setData({dyProfit: options.id})}else if (options.profit.length 6) {console.log('这里有值options.id')console.log(options.id)that.setData({dyProfit: options.id.replace(/'/g, "")})}}

TAG标签: 微信小程序单引号

http://www.xiaochengxub.com/read-100435.html