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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 16:55:22990browse
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>

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