Home > Web Front-end > JS Tutorial > jquery.tmpl JQuery template plugin_jquery

jquery.tmpl JQuery template plugin_jquery

WBOY
Release: 2016-05-16 18:01:04
Original
1174 people have browsed it

URL: http://api.jquery.com/jquery.tmpl/.

Tmpl provides several tags:

${}: equivalent to {{=}}, which is an output variable and is encoded in HTML.
{{html}}: Output variable html, but without html encoding, suitable for outputting html code.
{{if }} {{else}}: Provides branching logic.
{{each}}: Provides loop logic, $value access iteration variables.
The following is a simple template tmpl example: (the code can best explain everything)

Effect:

image
demo download

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