【发布时间】:2013-03-30 18:16:58
【问题描述】:
使用jQuery Mobile 我想使用下面的 json 生成页面。通过生成我的意思是这个 json 代表整个移动网站的布局和结构。我想以某种方式循环这些数据(客户端站点)并创建带有页面列表和页面的主页。有人可以让我举个例子吗?
非常感谢
{
"name": "My Site Name",
"logo": "",
"theme": "a",
"fullSiteLink": "http://www.google.com",
"pages": [
{
"id": "1364666933727",
"name": "I'm a page",
"type": "basic",
"components": {
"img": "url here",
"text": "This is the page content."
}
}
]
}
【问题讨论】:
标签: javascript jquery json jquery-mobile