记录一下
但是 由于 数据太长的话 会报错VM14233:1 MiniProgramError Unexpected end of JSON input SyntaxError: Unexpected end of JSON input
所以在对数据进行encodeURIComponent转码
var product = encodeURIComponent(JSON.stringify(e.currentTarget.dataset.product));
接收时使用
var product = JSON.parse(decodeURIComponent(options.product));
就可以了