Extjs 使用<;启动模板/预处理>;Sencha Touch中的标签

Extjs 使用<;启动模板/预处理>;Sencha Touch中的标签,extjs,sencha-touch,Extjs,Sencha Touch,我不明白为什么要为dataview.List启动一个带有标记的模板。这是因为我们期望Sencha架构之前会有一个标签,我们想对此进行补偿吗 tag before it, and we want to compensate for that? Ext.define("NotesApp.view.NotesList", { extend: "Ext.dataview.List", alias: "widget.noteslist", config: { lo

我不明白为什么要为dataview.List启动一个带有标记的模板。这是因为我们期望Sencha架构之前会有一个标签,我们想对此进行补偿吗

tag before it, and we want to compensate for that?

Ext.define("NotesApp.view.NotesList", {
    extend: "Ext.dataview.List",
    alias: "widget.noteslist",
    config: {
        loadingText: "Loading Notes...",
        emptyText: '</pre>
<div class="notes-list-empty-text">No notes found.</div>
<pre>',
        onItemDisclosure: true,
        itemTpl: '</pre>
<div class="list-item-title">{title}</div>
<div class="list-item-narrative">{narrative}</div>
<pre>',
    }
});
Ext.define(“NotesApp.view.NotesList”{
扩展:“Ext.dataview.List”,
别名:“widget.noteslist”,
配置:{
加载文字:“加载注释…”,
emptyText:'
找不到笔记。
',
对,是的,
itemTpl:'
{title}
{叙述}
',
}
});

此代码是从哪里获得的?举个例子?这似乎是完全错误的,我从来没有使用过上面的任何东西。@Saki我从本教程中得到了它:好吧,无论作者试图用上面的代码解决什么问题,这都不是一个好的实践。通常,将项目渲染到一个div中。请不要使用这种丑陋的编码方式。