0
當我嘗試下面的代碼(如建議在這裏由Ryan武question):ZK不能訪問方法包括.zul
<?page title="Auto Generated index.zul"?>
<window title="Hello World 2!!" border="none" width="600px">
<include id="inc" src="/zk/wind.zul" mode="instant" />
<button label="do it" onClick="inc$wind.doModal()" />
</window>
按下該按鈕後我收到此錯誤:
inc$wind.doModal();'' : Attempt to resolve method: doModal() on undefined variable or class name
文件wind.zul看起來
<?page title="new page title" contentType="text/html;charset=UTF-8"?>
<zk>
<window id="wind" title="new page title" border="normal" visible="false" width="300px">
New Content Here!
</window>
</zk>
有人可以讓我知道什麼是錯的?謝謝...