Home > Web Front-end > JS Tutorial > Javascript reads Xml file to make a secondary linkage menu example_javascript skills

Javascript reads Xml file to make a secondary linkage menu example_javascript skills

WBOY
Release: 2016-05-16 16:55:22
Original
972 people have browsed it
Copy code The code is as follows:




menu2level.html










The effect is as follows:
http://img.blog.csdn.net/20140315235043343?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGl1aGVuZ2h1aTUyMDE=/font/5a6L5L2T/fontsize/400/fill/I0J BQkFCMA==/dissolve/70 /gravity/SouthEast
cities.xml file is as follows:
Copy code The code is as follows:




Xi'an
Hanzhong
Baoji
Yan'an


Foshan
Shenzhen
< ;city>Guangzhou
Shantou


Dalian
Tieling
Anshan
Fushun
< /province>

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