Home > Backend Development > PHP Tutorial > 怎么在smarty中将javascript的值传到smarty中

怎么在smarty中将javascript的值传到smarty中

WBOY
Release: 2016-06-13 10:16:33
Original
848 people have browsed it

如何在smarty中将javascript的值传到smarty中
比如javascript中有一变量a,我想将它赋值给smarty自己的变量,该怎么做?
目前我是用capture函数,捕获javascript的输出,请问有什么常规一点的办法吗?


------解决方案--------------------
赋值给php,然后用smarty替换。

Related labels:
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