jQuery .on() method - passing argument to event handler function

前端 未结 6 1393
别那么骄傲
别那么骄傲 2021-01-31 07:49

I have the following script which does not work



        
6条回答
  •  春和景丽
    2021-01-31 08:32

    function ADS(e){ alert(e); }
    
    $(document).ready(function(){
              $(document).on("dblclick","#an_tnam tr", function (e) { ADS('hello') });
    
     });
    

    will do the trick.

提交回复
热议问题