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