清单20 中所示的方法可用来忽略onClick事件,只返回某个被禁用了的节点是否被单击。
The method shown in Listing 20 can be used to ignore the onClick event by simply returning if a disabled node was clicked on.
当用户单击某个关闭的节点时,浏览器会将目标节点的onClick事件(通过气泡)传递给小组件控制器代码的主onclick处理程序。
When a user clicks on a closed node, the onClick event of the target node is bubbled up by the browser to the main onClick handler of the widget's controller code.
当用户单击某个关闭的节点时,浏览器会将目标节点的onClick事件(通过气泡)传递给小组件控制器代码的主onclick处理程序。
When a user clicks on a closed node, the onClick event of the target node is bubbled up by the browser to the main onClick handler of the widget's controller code.
应用推荐