index.html:
app.js:
var yep = angular.module('login', ['ionic'], function ($httpProvider) { $httpProvider.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8'; var param = function(obj) { var query = '', name, value, fullSubName, subName, subValue, innerObj, i; for(name in obj) { value = obj[name]; if(value instanceof Array) { for(i=0; ihttp://gzb.szsy.cn/card/Default.aspx', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, method: "POST", data: datainform }).success(function(data, status, headers, config){ }); }; }]);
ng-click="x();" 的时候把postform传进去呀。