encodeURI(url).replace(/\+/g, '%2B')

例子:

$scope.getAnesthesiawaystatistical = function (annual, anesthesiaMethodRep) {
var Anesthesiurl = "/api/v1/AnesthesiAwayStatistical/GetAnesthesiAwayStatisticalCount?anesthesiaMethodRep=" + "'" + anesthesiaMethodRep + "'" + "&annual=" + annual;
alert(encodeURI(Anesthesiurl).replace(/\+/g, '%2B'));
$http.get(encodeURI(Anesthesiurl).replace(/\+/g, '%2B')).success(function (data) {

if (data.has_val) {
$scope.AnesthesiAwayStatisticalList = data.result;

console.log($scope.AnesthesiAwayStatisticalList);
}
});
}

相关文章:

  • 2021-12-05
  • 2022-12-23
  • 2021-05-18
  • 2021-11-02
猜你喜欢
  • 2021-09-15
  • 2021-09-13
  • 2021-11-01
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案