浏览 1383 次
锁定老帖子 主题:E4X简单应用
该帖已经被评为新手帖
|
|
---|---|
作者 | 正文 |
发表时间:2008-06-18
<!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> 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |