Calling a method from XBL

前端 未结 2 1388
不思量自难忘°
不思量自难忘° 2021-01-28 06:22

From a XBL method, when I need to call another method, I do like:

        
            
                

        
2条回答
  •  既然无缘
    2021-01-28 07:15

    In the specific case of an event listener, there is another way around the problem, and that is to pass the element itself as the listener. Of course you only get one handleEvent method, so this is less useful if you're listening to lots of different events on lots of different event targets.

    
      
        
        
          
        
      
    

提交回复
热议问题