angularJS http.post 请求

xiaoxiao2021-02-28  22

$scope.submit=function(url,params){ $http.post(url,params) .success(function(result){ console.log(result); }) .err(function(result){ console.log(result); }) }

angularjs 和 jquery js最大的区别在哪儿那,angularjs是你事先在心中构建好真个页面,然后用变量或者占位符来表示数据,数据来了,直接填充就可以了;而jquery则是动态的修改dom元素,如添加修改dom标签等。设计思想不一样。

转载请注明原文地址: https://www.6miu.com/read-1950063.html

最新回复(0)