How to stop jQuery post page refresh

前端 未结 2 909
太阳男子
太阳男子 2021-01-22 07:05

I am getting data from an MySQL database through PHP. I am sending the and getting the data from PHP using jQuery. Here is the code.

$.POST(\"SubmitCode.php\", $         


        
2条回答
  •  囚心锁ツ
    2021-01-22 07:21

    You also have to parse the json on the client side. You can do this using

    obj = jQuery.parseJSON(data);

提交回复
热议问题