求解???

 

<window title="Test of JavaScript Utilities">
   <html onClick='l.value = "onClick "+event.area'
      onUser='l.value ="onUser " +org.zkoss.lang.Objects.toString(event.data)'><![CDATA[
      <a href="javascript:;" onclick="comm.sendClick(this, 'Hi')">onClick with Hi</a>
      <a href="javascript:;" onclick="comm.sendClick(this)">onClick with null</a>
      <a href="javascript:;" onclick="comm.sendUser(this)">onUser with null</a>
      <a href="javascript:;" onclick="comm.sendUser(this, 'One')">onUser with One</a>
      <a href="javascript:;" onclick="comm.sendUser(this, 'One', 'Two')">onUser with [One, Two]</a>
      <a href="javascript:;" onclick="comm.sendEvent(this, 'onUser', 'XYZ')">onUser with XYZ</a>
   ]]></html>
   <separator/>
   <label id="l"/>
</window>

 这段代码是丛ZK帮助文档中COPY下来的,可是测试没有达到我要的结果,望高手帮助解决!!!

 

目的:让Label 显示event.area ,event.data

 

你可能感兴趣的:(求解???)