[英]Update Object Value In Handlebars
I have one java script object which is iterating through handlebars. 我有一个Java脚本对象正在通过车把进行迭代。 When I write
{{this.prop}}
this shows me "/bla/bla". 当我写
{{this.prop}}
显示“ / bla / bla”。
I want to update this property so that when I use {{this.prop}}
it should return /alpha/bla/bla. 我想更新此属性,以便在我使用
{{this.prop}}
时应返回/ alpha / bla / bla。 I am looking for client-side manipulation. 我正在寻找客户端操作。 How can I do the same?
我该怎么做?
Thanks, 谢谢,
尝试使用: src="'/alpha{{this.prop}}"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.