DEE

数据交换


[获取Element的值]

<p><strong>方法签名:</strong> </p> <p><code>getElementValue(element)</code></p> <p><strong>简要描述:</strong> </p> <ul> <li>获取Element对象的value值</li> </ul> <p><strong>参数:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th style="text-align: left;">说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">element</td> <td style="text-align: left;">com.seeyon.v3x.dee.Document.Element</td> <td style="text-align: left;">Element对象</td> </tr> </tbody> </table> <p><strong>返回值说明</strong> </p> <table> <thead> <tr> <th style="text-align: left;">类型</th> <th style="text-align: left;">说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">Object</td> <td style="text-align: left;">Element对象的value</td> </tr> </tbody> </table> <p><strong>使用例子</strong></p> <pre><code>Element id = document.getRootElement().getChild(&amp;quot;table&amp;quot;).getChild(&amp;quot;row&amp;quot;).getChild(&amp;quot;id&amp;quot;);//获取名称为id的Element节点 println getElementValue(id);//打印名称为id的Element节点的value</code></pre> <p><strong>输出结果</strong></p> <pre><code>1001</code></pre> <p><strong>备注</strong> </p> <ul> <li>无</li> </ul>

页面列表

ITEM_HTML