首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

jQuery 查询xml资料节点

2013-04-20 
jQuery 查询xml文件节点PlateTreesPlate ID1 Name股票Plate ID2 NameA股/PlatePlate

jQuery 查询xml文件节点
<PlateTrees>
    <Plate ID="1" Name="股票">
        <Plate ID="2" Name="A股"></Plate>
        <Plate ID="3" Name="港股"></Plate>
        <Plate ID="4" Name="美股"></Plate>
    </Plate>
    <Plate ID="5" Name="外汇">
        <Plate ID="6" Name="欧/美"></Plate>
        <Plate ID="7" Name="镑/美"></Plate>
        <Plate ID="8" Name="澳/美"></Plate>
        <Plate ID="9" Name="美/日"></Plate>
        <Plate ID="10" Name="美/加"></Plate>
        <Plate ID="11" Name="美/瑞"></Plate>
    </Plate>
</PlateTrees>


使用jQuery 怎样查询 ID为8的这个节点
[解决办法]
$(xml).find('#8');

热点排行