cms icon indicating copy to clipboard operation
cms copied to clipboard

有没有可以计算数值的方法?

Open anilyu opened this issue 8 years ago • 3 comments

比如,我想在内容列表依序生成某些DIV元素,它们的ID值类似div1,div2,div3...., 记得以前的版本可以的,但忘了语法。。

anilyu avatar Oct 20 '18 09:10 anilyu

div class="col-md-3 wow fadeInRight" data-wow-duration="0.6s" data-wow-delay="0.6s"> /div> 如上所示,我想生成的代码中data-wow-delay值以次是0.6s, 0.9s, 0.12s... 就是以0.6为基数,自增0.3 可以实现吗?

anilyu avatar Oct 20 '18 09:10 anilyu

这个貌似要用到传说中的正则表达式

leonedit avatar Oct 21 '18 13:10 leonedit

{Content.ItemIndex}加这个标签试试

starlying avatar Nov 08 '18 07:11 starlying