-
FEATURED COMPONENTS
First time here? Check out the FAQ!
zAu.send(new zk.Event(zk("$btnSaveCustom").$(),"onClick",{a:1},{toServer:true})); 通过这种方式,getData()取不到数据
I think you need to get the data by ((JSONObject)event.getData()).get("a")
You can read Fire event directly to server and the example project at the Github.
The event name should be a custom event name like onMyEvent
so that ZK will send your data object to the server. If you send a built-in event name like onClick
, ZK will just send standard data instead of your custom data.
Asked: 2018-09-28 16:17:48 +0800
Seen: 16 times
Last updated: Oct 09 '18
event.getData() is null now.
xuesong ( 2018-10-08 09:03:47 +0800 )edit