View unanswered posts | View active topics It is currently 2020-09-18 19:49



This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
 前台单击事件怎么写啊? 
Author Message
新手上路

Joined: 2013-04-15 13:03
Posts: 24
Post 前台单击事件怎么写啊?
network.addInputHandler({
//函数名为事件类型,传递参数evt为事件对象,component为事件派发者,也就是这个svg组件
doubleclick: function(evt, component){
var element = network.getElement(evt);

}
});


这是双击事件,我不知道单击事件是啥?


2013-04-16 16:53
Profile
TWaver开发组
User avatar

Joined: 2009-04-20 18:37
Posts: 3115
Post Re: 前台单击事件怎么写啊?
click: function(....


2013-04-16 17:27
Profile
新手上路

Joined: 2013-04-15 13:03
Posts: 24
Post Re: 前台单击事件怎么写啊?
怎么不管用啊大哥?


2013-04-16 17:30
Profile
TWaver开发组
User avatar

Joined: 2012-07-27 17:20
Posts: 50
Post Re: 前台单击事件怎么写啊?
你在前台这样写没有用的(像这样的交互都是向后台发送请求,告诉后台你click或是move了某个网元,后台处理后再返回整个页面),你要到servlet中去截获这个事件(比如隐藏某个网元或什么其他的),然后做相关的操作,最终才返回到前台。


2013-04-16 18:05
Profile
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron