Home > Article > Backend Development > Code example to simply implement asynchronous page refresh through php+JQuery+Ajax
The page is displayed as follows:
The code in JQueryAjax.html is as follows (using the simpler $.post)
JQueryAjax+PHP 用户名:
密码:
ajax.php:
ajax.php "; //这里可以进行一些操作,比如数据库交互 echo "操作完毕"; ?>
In non-json format, the background can only return strings. If you want to return an array in the background, you can use json format
For example, in JQueryAjax The code is modified to the following form:
JQueryAjax+PHP 用户名:
密码:
ajax.php
The running effect is as follows:
thinkphp redis queue related issues
Build a lamp on the server (Linux (CentOS7) Apache MySQL PHP)
Explanation of simple examples of Android PHP MYSQL development
The above is the detailed content of Code example to simply implement asynchronous page refresh through php+JQuery+Ajax. For more information, please follow other related articles on the PHP Chinese website!