{
id: "91",
name: "成员",
img: "images/couple/heart.gif",
comment: "<a href='wedding.html' target='_blank'><font color='#0000CC'>点我查看成员表</font></a>",
ispre: "0",
isgood: "1",
ishot: "0",
pricelist: [{
"price": "350",
"count": "100",
"paymode": "1",
"usermode": "5",
"period": "0"
},
{
"price": "1000",
"count": "300",
"paymode": "1",
"usermode": "5",
"period": "0"
},
{
"price": "2000",
"count": "600",
"paymode": "1",
"usermode": "5",
"period": "0"
},
{
"price": "4000",
"count": "1200",
"paymode": "1",
"usermode": "5",
"period": "0"
},
{
"price": "8000",
"count": "2400",
"paymode": "1",
"usermode": "5",
"period": "0"
},
{
"price": "15000",
"count": "4500",
"paymode": "1",
"usermode": "5",
"period": "0"
},
{
"price": "30000",
"count": "9000",
"paymode": "1",
"usermode": "5",
"period": "0"
},
{
"price": "75000",
"count": "23000",
"paymode": "1",
"usermode": "5",
"period": "0"
},
{
"price": "80000",
"count": "24500",
"paymode": "1",
"usermode": "5",
"period": "0"
}]
},
{
total: "37",
curPage: "1",
count: "4",
pagesize: "12",
mode: "shoplist"
}
这样的数组是怎么做的.
求高手指教.
我只能做出这样的.{
"length": 2,
"curPage": 0,
"mode": "shoplist",
"total": 0,
"count": 0,
"pagesize": 0,
"img": 0,
"comment": 0,
"ishot": 0,
"isgood": 0,
"name": 0,
"pricelist": {
"price": 0,
"paymode": 1,
"usermode": 1
}
},
{
"length": 2,
"curPage": 0,
"mode": "shoplist",
"total": 0,
"count": 0,
"pagesize": 0,
"img": 0,
"comment": 0,
"ishot": 0,
"isgood": 0,
"pricelist": {
"price": 0,
"paymode": 1,
"usermode": 1
}
}
id: "91",
name: "成员",
img: "images/couple/heart.gif",
comment: "<a href='wedding.html' target='_blank'><font color='#0000CC'>点我查看成员表</font></a>",
ispre: "0",
isgood: "1",
ishot: "0",
pricelist: [{
"price": "350",
"count": "100",
"paymode": "1",
"usermode": "5",
"period": "0"
},
{
"price": "1000",
"count": "300",
"paymode": "1",
"usermode": "5",
"period": "0"
},
{
"price": "2000",
"count": "600",
"paymode": "1",
"usermode": "5",
"period": "0"
},
{
"price": "4000",
"count": "1200",
"paymode": "1",
"usermode": "5",
"period": "0"
},
{
"price": "8000",
"count": "2400",
"paymode": "1",
"usermode": "5",
"period": "0"
},
{
"price": "15000",
"count": "4500",
"paymode": "1",
"usermode": "5",
"period": "0"
},
{
"price": "30000",
"count": "9000",
"paymode": "1",
"usermode": "5",
"period": "0"
},
{
"price": "75000",
"count": "23000",
"paymode": "1",
"usermode": "5",
"period": "0"
},
{
"price": "80000",
"count": "24500",
"paymode": "1",
"usermode": "5",
"period": "0"
}]
},
{
total: "37",
curPage: "1",
count: "4",
pagesize: "12",
mode: "shoplist"
}
这样的数组是怎么做的.
求高手指教.
我只能做出这样的.{
"length": 2,
"curPage": 0,
"mode": "shoplist",
"total": 0,
"count": 0,
"pagesize": 0,
"img": 0,
"comment": 0,
"ishot": 0,
"isgood": 0,
"name": 0,
"pricelist": {
"price": 0,
"paymode": 1,
"usermode": 1
}
},
{
"length": 2,
"curPage": 0,
"mode": "shoplist",
"total": 0,
"count": 0,
"pagesize": 0,
"img": 0,
"comment": 0,
"ishot": 0,
"isgood": 0,
"pricelist": {
"price": 0,
"paymode": 1,
"usermode": 1
}
}
"id"=>19,
"name"=>"成员",
...
"pricelist"=>array(array("price"=>1999...),array("price"=>2000...))
);你只差再嵌套一个数组