{
Introduction:
[
{
title: "Introduction",
toolbar: "Page 1",
content: "cont, aabitant morbi tristique..."
},
{
title: "about",
toolbar: "Page 2",
content: "contesent vel nisi ipsum..."
},
{
title: "services",
toolbar: "Page 3",
content: "Cras adipiscing sapien nec..."
}
]
}
我想創建道場移動動態頁面的JSON文件。從上面的Json開始,三個頁面將會前後移動。我遇到問題。我正在閱讀Json:
dojo.xhrPost({
url: "start.json",
handleAs: "json",
var viewContainer = new dojox.mobile.ScrollableView({id:"viewContainer"});
load: function(response) {
for (key in response){
// creating each view heading and content here.........
//can you give some hint what should be here?
}
}
如何讀取上面的json並創建動態視圖。有什麼能與這行代碼來代替//can you give some hint what should be here?
感謝。我更新了問題。 //你能提供一些提示,應該在這裏? – 2011-12-16 06:46:56