Binding the same onclick event according to two class

startBtn.add $ ($ againBtn) .on ( "the Click", function (E) { 
            e.preventDefault (); 
           // a corresponding processing code 
          startGame (); 
});

  

Guess you like

Origin www.cnblogs.com/bokeTing/p/12054139.html