在一个页面上点击“添加”按钮 在该页面的上方出现输入框 填写相关信息 保存后在页面下方的数据同时更新

WBOY
Release: 2016-06-13 13:25:10
Original
1659 people have browsed it

在一个页面下点击“添加”按钮 在该页面的下方出现输入框 填写相关信息 保存后在页面上方的数据同时更新
我之前是点击“添加”后会跳转到另一个页面,保存到数据库后,返回到原页面便会出现新增的内容。现在我想在同一个页面中实现,怎么办呢?

------解决方案--------------------
Ajax 传递数据到后台处理 处理完毕后返回数据 再使用Js处理.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!