angularjs---$http.post发的数据,后台取不到

时间:2023-03-09 17:03:29
angularjs---$http.post发的数据,后台取不到

我用$http.post(url, data). 后台用play框架,不知道为什么总是取不到data数据。如果直接用$.post(url, data); 就可以!

angularjs---$http.post发的数据,后台取不到

后台Play的一个action:

angularjs---$http.post发的数据,后台取不到

打印出来,始终是null. 如果直接用$.post就可以正常打印出: test_lwp

angularjs---$http.post发的数据,后台取不到

本文转载自:http://www.angularjs.cn/A0jl