我如何在数据绑定中添加空间“文本:...”
我正在尝试在Div中的文件名之间添加空间。 看起来
<span class="upload-bar__file-name" data-bind="text: name"></span>
我尝试了此操作,但没有工作
<span class="upload-bar__file-name" data-bind="text: ' ' + name"></span>
编辑: 我正在尝试实现这一目标:
如果有3个名称: a b 和 c ,我希望像这样显示它: ab c 而不是这样: abc
I'm trying to add space between file names in a div.
It looks like this
<span class="upload-bar__file-name" data-bind="text: name"></span>
I tried this but didn't work
<span class="upload-bar__file-name" data-bind="text: ' ' + name"></span>
EDIT:
I'm trying to accomplish this :
if there are 3 names: A B and C, I want it to be displayed like this : A B C and not like this : ABC
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以用来
将所谓的“非破坏空间”添加到
名称
You can use
to add a so-called "non-breaking space" to the
name