<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>e4xl.html</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
<script type="text/javascript">
var xml = new XML();
xml = <employees>
<employee title="Software Engineer">
<name>Vincent</name>
</employee>
<employee title="Salesperson">
<name>Sam</name>
</employee>
<date>2008-06-18</date>
</employees>;
document.write(xml..employee[0]+"<br/>");
document.write(xml..name[0]+"<br/>");
document.write(xml..employee.(@title=="Salesperson").name+"<br/>");
document.write(xml..date);
</script>
</head>
<body>
</body>
</html>
E4X简单应用
最新推荐文章于 2023-05-11 16:00:57 发布