公用書包public(例子檔案:_samples/public.html)---預設存在的書包,

來源:互聯網
上載者:User

公用書包public(例子檔案:_samples/public.html)---預設存在的書包,

public書包用來存放系統運行中產生的公開變數,相當於jsp、asp、php中的全域,優勢是用起來更Easy,只需要在書包public放入和取出即可

 

放入:

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

取出:

@{public:test}

可以在任意網頁中操作,結果都是全域有效

 

執行個體:

 

檔案_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>

檔案_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>

 

不停地點擊重新整理看看效果吧


輕開平台資源下載及說明

平台及最新開發手冊免費下載:http://download.csdn.net/detail/tx18/8381859

開發執行個體:輕開B2C電子商務網站,免費下載:http://download.csdn.net/detail/tx18/8318585

輕開平台會不定期升級為大家提供更多強大而Easy的功能,請留意最新的開發手冊


特別說明:輕開平台及我們的開發執行個體永久免費,並且不限制用途,也就是說您可以把我們的執行個體稍作修改自己運營或賣給您的客戶,而我們不會向您收一分錢

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.