gpt4 book ai didi

javascript - 在 ng-bind-html 的结果之间添加空格

转载 作者:行者123 更新时间:2023-11-28 13:29:05 25 4
gpt4 key购买 nike

我使用以下 ng-repeat:

<b>Mots clés :</b><span ng-repeat="resulKeywords in resultats.tra_keywords"><span ng-bind-html="resulKeywords | highlight:rechercheKeywords"></span></span>

它可以工作并显示我所有的结果关键字。示例显示:

 result1result2result3result4

如何在结果之间添加空格?

 result1 result2 result3 result4

我所有的测试都失败了,因为我将结果封装在 ng-bind-html 中。

最佳答案

尝试添加

<span ng-bind-html="resulKeywords | highlight:rechercheKeywords"></span> &nbsp;

关于javascript - 在 ng-bind-html 的结果之间添加空格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26588826/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com