Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您可以将上下文作为闭包的一部分传递给处理函数:
$('myButton').on("click", (function(context) { return function() { context.Work }; })(this));
不用说,这是跨浏览器,因为它依赖于 JS 的核心特性之一。
问题在于“p:ajax event="rowDblselect" listener="#{companyBean.update()}" ...”,当我第一次双击时,方法“update()”被调用一次(完美!),但