Extjs 只显示一条数据
Ext.onReady(function(){varfields=['id','name','word','email','sex']varda=[["3","zj","...
Ext.onReady(function(){
var fields=['id','name','word','email','sex']
var da= [["3","zj","551686","zhuyijian@163.com","男"],
["2","jz","551686","zhuyijian@163.com","男"],
["1","zj","551686","zhuyijian@163.com","男"]]
var bookStore=new Ext.data.SimpleStore(
{
data:da,
fields:fields
})
var toolbar=new Ext.Toolbar([{text:'修改信息',iconCls:'option'}])
var grid=new Ext.grid.GridPanel({
store:bookStore,
columns:
[
{header:'id',height:80,dataIndex:'id'},
{header:'用户名',height:80,dataIndex:'name'},
{header:'密码',height:80,dataIndex:'word'},
{header:'邮箱',height:80,dataIndex:'email'},
{header:'性别',height:80,dataIndex:'sex'}
]
})
grid.render(Ext.getBody())
})
明明有三条数据 为什么只显示一条啊 展开
var fields=['id','name','word','email','sex']
var da= [["3","zj","551686","zhuyijian@163.com","男"],
["2","jz","551686","zhuyijian@163.com","男"],
["1","zj","551686","zhuyijian@163.com","男"]]
var bookStore=new Ext.data.SimpleStore(
{
data:da,
fields:fields
})
var toolbar=new Ext.Toolbar([{text:'修改信息',iconCls:'option'}])
var grid=new Ext.grid.GridPanel({
store:bookStore,
columns:
[
{header:'id',height:80,dataIndex:'id'},
{header:'用户名',height:80,dataIndex:'name'},
{header:'密码',height:80,dataIndex:'word'},
{header:'邮箱',height:80,dataIndex:'email'},
{header:'性别',height:80,dataIndex:'sex'}
]
})
grid.render(Ext.getBody())
})
明明有三条数据 为什么只显示一条啊 展开
1个回答
光点科技
2023-08-15 广告
2023-08-15 广告
通常情况下,我们会按照结构模型把系统产生的数据分为三种类型:结构化数据、半结构化数据和非结构化数据。结构化数据,即行数据,是存储在数据库里,可以用二维表结构来逻辑表达实现的数据。最常见的就是数字数据和文本数据,它们可以某种标准格式存在于文件...
点击进入详情页
本回答由光点科技提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询