开发者

How can I use jQuery {{html}} tag inside {{each}} tag?

开发者 https://www.devze.com 2023-04-02 21:53 出处:网络
var visitMarkup = \"<tr><td>{{each links}}{{html $value}}{{/each}}</td>\\ </tr>\";
var visitMarkup = "<tr><td>{{each links}}{{html $value}}{{/each}}</td>\ </tr>";

I have an array of html links inside links variable. How can I decode the value usi开发者_JAVA百科ng {{html}} tag inside {{each}} tag?


Try

var visitMarkup = "{{each(linkIndex, link) links}}{{html link}}{{/each}}";
0

精彩评论

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