Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
en-le-yan opened this issue Aug 8, 2023 · 0 comments
Open

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

en-le-yan opened this issue Aug 8, 2023 · 0 comments

Comments

@en-le-yan
Copy link

en-le-yan commented Aug 8, 2023

问题描述?

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

重现步骤

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

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

期望的结果

    :data-report="{
          rese16: totalIntegral,
        }"
或者 
:data-report="{'rese16':''+(totalIntegral)+''}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant