Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我是 Sencha touch2 的新手,正在解析 json 数据的 url 并显示在列表中。如何为每个列表项添加复选框?
嗨,只需将 html 添加到您的模板,试试这个:
itemTpl: '<input type="checkbox" id="myId" <tpl if="active">checked="checked"</tpl>/>{field from json data}',