Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当 ZK 组件被销毁或分离时,是否有可能通知侦听器?
我希望不同的组件作曲家通过事件队列进行通信。为了做到这一点,我将这些组件的侦听器订阅到事件队列。现在我需要知道一个组件或其作曲家何时被销毁以便取消订阅它的监听器。
谢谢
是的,您可以实现UiLifeCycle。
文档:http: //books.zkoss.org/wiki/ZK_Configuration_Reference/zk.xml/The_listener_Element/The_org.zkoss.zk.ui.util.UiLifeCycle_interface
我的 JSP 的标题中有这一行,<script>var logicalName = "${logicalName}"</script>它正在解析为正确的值。
<script>var logicalName = "${logicalName}"</script>
我想通过 javascript/jquery 访问这个值。我该怎么做呢?
这是行不通的console.log($lo
console.log($lo