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

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

WBOY
WBOYOriginal
2016-06-13 10:16:33826browse

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


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

Statement:
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