我正在尝试以dojox.grid.DataGrid
编程方式创建 Dojo。它正在创建但不显示输出,而是显示错误消息:“抱歉,发生错误”
这是代码:
var info=[
{
"Propery":"key1","Value":"value1"},
{
"Property":"key2", "Value":"value2"},
{
"Property":"key3","Value":"value3"}
];
var layout = [
{
name: "Property",
field: 'Property',
width: "180px"},
{
name: "Value",
field: 'Value',
width: "180px"}
];
var myStore = new dojo.data.ItemFileReadStore({data:{items:info}});
var grid = new dojox.grid.DataGrid({
store: myStore,
structure: layout
},"myDiv");
grid.startup();
我不知道哪里出了问题,请帮助我。