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.
我可以给XBL 处理程序一个名称,这样我就可以像使用XBL 方法一样从我的 javascript 中调用它吗?
似乎不是,但您可以创建一个 XBL 方法并从您的处理程序和其他 JavaScript 中调用它。就像是:
<handler event="mouseover"> this.handleMouseOver(); </handler> ... <method name="handleMouseOver"> <body>... //and in javascript code: yourObj.handleMouseOver();