我的$ http.get具有一个参数,它的工作方式如下:
getUserBand: function(email) {
return $http.get(baseUrl + 'selectUserBand.php?email=' + email);
},
我想发送2个参数,例如:
getUserBand: function(email,param2) {
How to call 2 parameter in this field?
},
如何在$ http.get字段中调用email和param2?
您可以在参数后面加上'&':
getUserBand: function(email,param2) {
$http.get(baseUrl + 'selectUserBand.php?email=' + email + '¶m2=' + param2);
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句