1.PHP+JQ+HTML
HTML
//等待的gif图首页
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus amet architecto asperiores culpa error, maiores natus neque officiis perspiciatis repellendus sed sunt. Eius eos molestias nihil placeat possimus sit veniam.
PHP
header("Content-Type:text/html;charset=UTF-8"); //设置响应头?>
//输出HTML代码版权所有© 2017-10-11
JQ
输出效果:
限制:
1.PHP返回的只能是HTML片段,(json返回不行哦)
2.(“#id”).load 会替换ID中的内容类似 innerHTML="",而不是innerHTML+="";