JS入门到精通 第17章 Javascript中的XML
导读:一、练习 1. 练习1 (1)源代码 <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/css" href="styl...
一、练习
1. 练习1
(1)源代码
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="style.css"?>
<!-- 这是XML文档的注释 -->
<软件管理系统>
<管理员1>
<用户名>明日科技</用户名>
<编号>0001</编号>
<电话>84978981</电话>
</管理员1>
<管理员2>
<用户名>明日软件</用户名>
<编号>0002</编号>
<电话>84972266</电话>
</管理员2>
</软件管理系统>
(2)运行页面
https://www.xinyizhishu.top/jsC/sc/17_1/
(3)Tips
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css">
<管理员1><用户名>明日科技</用户名><编号>
已经淘汰了,现在都用json。