smarty模板文件tpl中在写输出的时分会变量名后面的“|h”是什么含义

WBOY
Release: 2016-06-13 11:46:36
Original
1412 people have browsed it

smarty模板文件tpl中在写输出的时候会变量名后面的“|h”是什么含义
例如:

="" class="box60" style="; ime-mode: active;" />
红色字体的变量的后面的|h是做什么的?

------解决方案--------------------
 管道(借用操作系统名词)
将模板变量传递给函数
------解决方案--------------------
$arrForm.state
------解决方案--------------------
h
等价于
h($arrForm.state)

他就是这么约定的,没有道理可言
你最好先看两遍手册

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