angular.js - angularjs与后端交互
为情所困
为情所困 2017-05-15 17:00:15
0
2
599

用angular做前端页面,与后端是怎么进行交互的(后端采用的是flask框架)?比如说前端要通过什么方式传输数据到后端,后端怎么拿取数据传输给前端?

为情所困
为情所困

reply all(2)
phpcn_u1582

json format $http service

巴扎黑

Usually inject $http service and interact with the background through get/post

module.controller("YourCtrl", [$scope, $http,
    function(scope, http) {
    // your controller code here:
    }])
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!