smarty的模板中能写优先级吗?

WBOY
Release: 2016-06-23 14:05:11
Original
732 people have browsed it

举例{wf:($i-1)/2 eq 0}
我想在模板中先进行加法再进行除法,但是模板不支持(),应该怎么写啊?


回复讨论(解决方案)

{math equation="(( x + y ) / z )" x=2 y=10 z=2}

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template