dnf血之洗礼和赤心:加法运算smarty
来源:百度文库 编辑:中科新闻网 时间:2024/05/29 01:18:27
在运用SMARTY的HTML页中,可以实现变量的加法运算么?(不用js)谢谢
可以啊
{* $height=4, $width=5 *}
{math equation="x + y" x=$height y=$width}
// 结果就是 9
可以啊
{* $height=4, $width=5 *}
{math equation="x + y" x=$height y=$width}
// 结果就是 9