Gwt查询"click"事件,它也会在悬停事件时触发(有时)



GwtQuery 对于"点击"事件,它也会在悬停时触发(有时),为什么会这样?

   $("html").bind("click", new com.google.gwt.query.client.Function() {
        @Override
        public boolean f(com.google.gwt.user.client.Event e) {
            $(".hopscotch-bubble").fadeOut(new com.google.gwt.query.client.Function() {
                @Override
                public void f() {
                    JSNIHelper.infoNotify("INFO", "Fade out method invoked.");
                }
            });
            return true;
        }
    });

你在同一上下文中问了这个问题两次:)

  • Gwt查询"点击"事件,它也会在悬停事件时触发(有时)
  • 即使不点击也会触发单击事件

请检查我的答案。它肯定会解决您的问题。

最新更新