Click the stop button to submit the form method of

Method 1: Click the Add button in the JS event,

= btn.onclick () => {
     // function code implemented


    // finally 
   return  false ;
};

Method 2: The Button button to button type attribute to

< The Button of the type = 'the Button' > Photo </ the Button >

 

Guess you like

Origin www.cnblogs.com/Liqian-Front-End-Engineer/p/11910689.html