编辑下面的代码:【加编码】
<html> <body> <p>This example works in Firefox only.</p> <script> var employees= <employees> <person> <name>Tove</name> <age>32</age> </person> <person> <name>Jani</name> <age>26</age> </person> </employees>; document.write(employees.person.(name == "Tove").age); </script> </body></html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂