Recently I saw someone in the Q group saying that Chrome (Google Chrome) does not support methods, so I would like to find a solution. I personally tested it when I was free and found that Chrome really didn't support it. I used Jquery when I tested it, but it didn't support it. So after studying it for a long time, I finally found a solution.
//Get the form idvar form=$('#myform').val(); //Get browser parametersvar browserName=(); if(/chrome/(browserName)&&/webkit/(browserName)&&/mozilla/(browserName)){ //If it is a chrome browser var tmp=('Edit'); $.post(tmp,()); }else{ //Execute SUBMIT (); }
The above is the entire content of this article, I hope you like it.