作者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/m.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