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

WBOY
Release: 2016-06-23 14:22:46
Original
1062 people have browsed it

smarty  |h

例如:

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


回复讨论(解决方案)

| 管道(借用操作系统名词)
将模板变量传递给函数

嗯,谢谢,那就是说 “|h”的作用就是这样? 能具体些吗,我菜鸟,刚刚PHP

$arrForm.state|h
等价于
h($arrForm.state)

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

知道了,谢谢1

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