Home  >  Article  >  Backend Development  >  用php+javascript实现二级级联菜单的制作_PHP教程

用php+javascript实现二级级联菜单的制作_PHP教程

WBOY
WBOYOriginal
2016-07-21 15:52:08689browse

 

大体思路是这样的:为了不让先前的页面刷新,我用iframe潜入了一个二级子页面,用来读取数据库中的数据,最后把想要的数据传递给父级页面,完成数据的选择和转移。

主要程序代码如下(部分代码有改动,但不影响功能):
父页面reg.html:

 

子页面city.php:






www.bkjia.comtruehttp://www.bkjia.com/PHPjc/319018.htmlTechArticle大体思路是这样的:为了不让先前的页面刷新,我用iframe潜入了一个二级子页面,用来读取数据库中的数据,最后把想要的数据传递给父级...
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