这用于在地址簿应用程序中显示联系人详细信息。
我得到了一个 json 结果集,我想在一个字段集中很好地显示这些数据。
有没有办法轻松做到这一点?或者我必须从字段集中复制完整的 html 输出并将其放在 itemTpl 中,例如它出现在示例中(http://dev.sencha.com/deploy/touch/examples/production/forms/index.html)例如
<div class="x-inner x-form-inner x-translatable x-scroll-scroller" id="ext-element-6">
<div class="x-container x-form-fieldset" id="ext-fieldset-1">
<div class="x-docking-vertical">
<div id="ext-title-1" class="x-form-fieldset-title x-docked-top">
<div class="x-innerhtml " id="ext-element-97">Personal Info</div>
</div>
<div class="x-body" id="ext-element-98">
<div class="x-inner x-form-fieldset-inner" id="ext-element-8">
<div class="x-container x-field-text x-field x-label-align-left x-field-required x-field-labeled x-field-clearable x-form-label-nowrap" id="ext-textfield-1">
<div class="x-form-label" id="ext-element-10" style="width: 40% !important; "><span id="ext-element-11">Name</span>
</div>
<div class="x-component-outer" id="ext-element-9">
<div id="ext-input-1" class="x-field-input">
<input id="ext-element-12" class="x-input-el x-form-field x-input-text" type="text" name="name" autocapitalize="off" value="{Name}">
<div class="x-clear-icon" id="ext-element-14"></div>
<div class="x-field-mask" id="ext-element-13" style="display: none !important; "></div>
</div>
</div>
</div>
ETC...
有没有更简单的方法?谢谢