miniprogram-to-uniapp icon indicating copy to clipboard operation
miniprogram-to-uniapp copied to clipboard

小程序模板自定义data属性转义错误

Open en-le-yan opened this issue 1 year ago • 0 comments

问题描述?

自定义属性转换错误 多了对引号

重现步骤

微信 data-report='{"rese16":"{{totalIntegral}}"}'>

输出 :data-report="'{'rese16':''+(totalIntegral)+''}'"

期望的结果

    :data-report="{
          rese16: totalIntegral,
        }"
或者 
:data-report="{'rese16':''+(totalIntegral)+''}"

en-le-yan avatar Aug 08 '23 07:08 en-le-yan