b30-2017848.zul
来自「ZK是一个Ajax Java Web框架」· ZUL 代码 · 共 23 行
ZUL
23 行
<?page id="testZul" title=" New ZUL Title" cacheable="false"
language="xul/html" zscriptLanguage="Java" contentType="text/html;charset=UTF-8"?>
<zk>
<html><![CDATA[
1. You should see listbox with item0 ~ item19.<br/>
2. Press buton "remove 1st item" and you should see the 1st item is removed
from the listbox (item0).<br/>
3. Press the button again, you should see item1 is removed.<br/>
4. Done.<br/>
]]></html>
<window>
<zscript><![CDATA[
List lst = new ArrayList(20);
ListModel model = new ListModelList(lst, true);
for(int j = 0; j < 20; ++j) {
lst.add("item"+ j);
}
]]></zscript>
<listbox model="${model}" rows="10"/>
<button label="remove 1st item" onClick='Iterator it = model.iterator();
it.next(); it.remove()'/>
</window>
</zk>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?