運行代碼的Firefox 8個結果如下_data數組:
_data:
[{id:0, answers:[{id:0, description:""}, {id:1, description:""}, {id:2, description:""}]},
{id:1, answers:[{id:0, description:""}, {id:1, description:""}, {id:2, description:""}]},
{id:2, answers:[{id:0, description:""}, {id:1, description:""}, {id:2, description:""}]},
{id:3, answers:[{id:0, description:""}, {id:1, description:""}, {id:2, description:""}]},
{id:4, answers:[{id:0, description:""}, {id:1, description:""}, {id:2, description:""}]},
{id:5, answers:[{id:0, description:""}, {id:1, description:""}, {id:2, description:""}]},
{id:6, answers:[{id:0, description:""}, {id:1, description:""}, {id:2, description:""}]},
{id:7, answers:[{id:0, description:""}, {id:1, description:""}, {id:2, description:""}]},
{id:8, answers:[{id:0, description:""}, {id:1, description:""}, {id:2, description:""}]},
{id:9, answers:[{id:0, description:""}, {id:1, description:""}, {id:2, description:""}]}]
也許你有一個錯字,因爲它是answers
不answer
你的代碼適用於我,你確定它不是一個顯示問題?嘗試檢查'_data.toSource()'的輸出。 – 2011-12-21 14:56:14