开发者

Can I give a XBL handler a name to call it?

开发者 https://www.devze.com 2023-01-30 11:37 出处:网络
Can I give a XBL handler a name, so I can call it from my javascript like I do w开发者_运维百科ith XBL methods?It seems not, but you can create an XBL Method and call it from both your handler and oth

Can I give a XBL handler a name, so I can call it from my javascript like I do w开发者_运维百科ith XBL methods?


It seems not, but you can create an XBL Method and call it from both your handler and other JavaScript. Something like:

  <handler event="mouseover">
    this.handleMouseOver();
  </handler>
  ...
  <method name="handleMouseOver">
    <body>...

  //and in javascript code:
  yourObj.handleMouseOver();
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号