开发者

syntax for binding multiple variables within text

开发者 https://www.devze.com 2022-12-27 11:40 出处:网络
When binding multiple variables value1 value2 value3 in the same text field, do I do this: text=\"{some text value1 other text value2 and other text value3}\"

When binding multiple variables value1 value2 value3 in the same text field, do I do this:

text="{some text value1 other text value2 and other text value3}"

or 

text="some text {value1} other text {value2} and other开发者_Python百科 text {value3}"

I noticed both work, but which is the right way to do it and will work all the time.


I would recommend the later for legibility. It also emphasizes which variables should be set Bindable.

0

精彩评论

暂无评论...
验证码 换一张
取 消