Home >Web Front-end >HTML Tutorial >Public school bag public (sample file: _samples/public.html) - the default school bag _html/css_WEB-ITnose

Public school bag public (sample file: _samples/public.html) - the default school bag _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:50:171162browse

The public school bag is used to store public variables generated during system operation, which is equivalent to the global variables in jsp, asp, and php. The advantage is that it is easier to use, and only needs to be placed in the school bag public can be put in and taken out

Put in:

<chtml><bag id=public><we name=test>@{int:@{public:test}+1}</we></bag></chtml>

Take out:

@{public:test}

Can be operated on any web page, the results are globally valid

Example:

File_samples/public.html

<html><title>公共信息书包</title><h3>公共信息书包</h3><table border=1><chtml><tr><th>变量名</th><th>值</th></tr><for end=@{public:getWidth}><tr><td>@{public:@{for:getSuffix}}</td><tdhtml>@{public:@{public:@{for:getSuffix}}}</td></tr></for><bag id=public><we name=test>@{int:@{public:test}+1}</we></bag></chtml></table><p><a href="public1.html">【刷新】</a></p></html>

file_samples/public1.html

<html><title>公共信息书包1</title><h3>公共信息书包1</h3><table border=1><chtml><tr><th>变量名</th><th>值</th></tr><for end=@{public:getWidth}><tr><td>@{public:@{for:getSuffix}}</td><tdhtml>@{public:@{public:@{for:getSuffix}}}</td></tr></for><bag id=public><we name=test1>@{int:@{public:test1}+1}</we></bag></chtml></table><p><a href="public.html">【刷新】</a></p></html>

No Keep clicking refresh to see the effect


<p><strong>轻开平台资源下载及说明</strong></p><p>平台及最新开发手册免费下载:http://download.csdn.net/detail/tx18/8381859</p><p>开发实例:<strong>轻开B2C电子商务网站</strong>,免费下载:http://download.csdn.net/detail/tx18/8318585</p><p>轻开平台会不定期升级为大家提供更多强大而Easy的功能,请留意最新的<strong>开发手册</strong></p>


Special note: The Qingkai platform and our development instances are permanently free, and there are no restrictions on use, which means that you can slightly modify our instances to operate them yourself or sell them to your customers, but we will not Charge you a penny
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