【问题标题】:How can I count how many child nodes there are in a root xml tag in flex?如何计算 flex 的根 xml 标记中有多少子节点?
【发布时间】:2011-07-02 04:53:44
【问题描述】:

我可以看一个例子,说明如何计算 flex 中根 xml 标记下有多少子节点?

【问题讨论】:

    标签: xml apache-flex root


    【解决方案1】:

    xml.children().length(),其中 xml 是一个 XML 对象。但它只会计算第一级深度子级。您需要计算所有孩子吗?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-11-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多