如何显示商店的数据?

发布于 2025-01-07 14:34:40 字数 535 浏览 5 评论 0原文

大家好, 我想在不使用列表的情况下显示来自 json 存储的数据.... 然后在 url 中我想增加页码... 我在 jsonstore 中有以下代码......

    Ext.regModel('message',{fields:['Drugid','Drugname','Manufacturer','Price','Unit','Catid']});

var store=new Ext.data.Store({

model: 'message',

proxy: {
type: 'ajax',
url: 'http://174.36.149.186/Medical/api/drugapi.php?op=mdrug&page=1',---- here i give just page is one,i want increment the page number

reader: {
type: 'json',
root: 'result.message'
}
},
autoLoad: true

});

hai all,
i want to display datas from json store without using list....
then in url i want increment the page number...
i have following code in jsonstore....

    Ext.regModel('message',{fields:['Drugid','Drugname','Manufacturer','Price','Unit','Catid']});

var store=new Ext.data.Store({

model: 'message',

proxy: {
type: 'ajax',
url: 'http://174.36.149.186/Medical/api/drugapi.php?op=mdrug&page=1',---- here i give just page is one,i want increment the page number

reader: {
type: 'json',
root: 'result.message'
}
},
autoLoad: true

});

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不知在何时 2025-01-14 14:34:40

我也是 sencha 的新手,但也许您可以定义一个项目模板并将模板添加到视图中,就像您所做的那样。一个文本框。项目模板就像对象一样声明,然后作为 itemtpl 配置属性的值传递到视图。
http://www.sencha. com/blog/dive-into-dataview-with-sencha-touch-2-beta-2/

i'm also new to sencha but maybe you could define an item template and add the template to a view just as you would eg. a textbox. the item template is declared just like an object and then passed to the view as the value of the itemtpl config attribute.
http://www.sencha.com/blog/dive-into-dataview-with-sencha-touch-2-beta-2/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文