作者hope0330 (MMMM)
看板Ajax
标题[问题] anglural 新手问题...
时间Sat May 28 16:34:40 2016
<td>{{data.name}}</td>
<td>{{data.author}}</td>
</tr>
</table>
</div>
</body>
JS部分:
$scope.showList = function(){
$http({
url:'
http://localhost:2000/book',
method:'GET',
}).then(function(success_response){
console.log(success_response);
$scope.list = success_response.data;
}, function(err_response){
console.log(err_response);
})
}
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 36.226.218.32
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Ajax/M.1464424483.A.347.html
1F:嘘 aaa7513231: 问题是? 05/28 17:28
2F:→ ccvs: angular也拼错... 05/30 01:17
3F:→ feelined: 根本连{{}}内的参数都没对到...这问题是...? 05/30 09:56