どうすればこれを回すことができますか:
<? echo json_encode($myArrays); ?>
...これに:
_rowData: [
{ name: "Most Recent", view: "recentView" },
{ name: "Most Popular", view: "popularView" },
{ name: "Staff Picks", view: "staffView" }
],
私のスクリプトは ^ を返しますが、データを文字列に入れる方法がわかり_rowData
ません。PS私はダッシュコードを使用しており、アイテムをリストコントローラーに動的にロードしようとしています
これまでのところ、私はこれを持っています:
var recentListControllerXHR = $.ajax("http://tarnfeldweb.com/applewebapps/ajax/recentApps.php", function(data){
return(JSON.stringify(data));
}, 'text');
rowData: recentListControllerXHR,