Home >Backend Development >PHP Tutorial > ajax兑现不刷新装在网页

ajax兑现不刷新装在网页

WBOY
WBOYOriginal
2016-06-13 13:16:32681browse

ajax实现不刷新装在网页
A页面有一个DIV里有一个按钮,
怎样才能按这个按钮就能使这个DIV 更新成 XXX.PHP页面的内容???



------解决方案--------------------
ajax请求XXX.php 将 XXX.php填充DIV。或者用iframe试试 。
------解决方案--------------------
如果仅仅是这个要求,iframe就很理想了,而且比ajax简单
------解决方案--------------------
jquery.load()

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn