看板 Ajax 關於我們 聯絡資訊
<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://www.ptt.cc/bbs/Ajax/M.1464424483.A.347.html
aaa7513231: 問題是? 05/28 17:28
ccvs: angular也拼錯... 05/30 01:17
feelined: 根本連{{}}內的參數都沒對到...這問題是...? 05/30 09:56