2.10.1
谷歌浏览器
2.6.10
https://codepen.io/iamhanson/pen/XvXJPp
https://codepen.io/iamhanson/pen/XvXJPp
(如果是常规变量,没有问题,但是如果使用数据,无法正常渲染。之前用的1.x是可以的,后来升级之后遇到了这个问题)
display score(显示分数)
variable is shown (显示了变量名)
Translation of this issue:
2.10.1
Chrome
2.6.10
Https://codepen.io/iamhanson/pen/XvXJPp
Https://codepen.io/iamhanson/pen/XvXJPp
(If it's a regular variable, no problem, but if you use data, it won't render properly. It was possible to use 1.x before, but this problem was encountered after the upgrade.
Display score
Variable is shown (showing variable names)
waiting
这个{value} 里的value是个关键字,不是value那个变量。跟占位符差不多。
score-template="{value}" 正常显示 3.7score-template="爱心{value}" 显示 爱心3.7明白了吧
感谢 @qingdengyue @xrkffgg 两位的回答。
Most helpful comment
score-template="{value}"正常显示 3.7score-template="爱心{value}"显示 爱心3.7明白了吧