我怎样才能把这个:
<? echo json_encode($myArrays); ?>
...进入这个:
_rowData: [
{ name: "Most Recent", view: "recentView" },
{ name: "Most Popular", view: "popularView" },
{ name: "Staff Picks", view: "staffView" }
],
我的脚本返回那个 ^,但我不知道如何将数据放入字符串中,_rowData
?PS我正在使用Dashcode,试图将项目动态加载到列表控制器中
到目前为止,我有这个:
var recentListControllerXHR = $.ajax("http://tarnfeldweb.com/applewebapps/ajax/recentApps.php", function(data){
return(JSON.stringify(data));
}, 'text');
rowData: recentListControllerXHR,