Home > Backend Development > PHP Tutorial > thinkphp 两个数怎么在模板中运算

thinkphp 两个数怎么在模板中运算

WBOY
Release: 2016-06-23 14:26:54
Original
748 people have browsed it


*这两个数怎么运算后的值输出

回复讨论(解决方案)

在控制器部分先算出来$var = $v.price*$v.num;  再传值

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