jjzjj

stripeCallback

全部标签

javascript - 将函数参数传递给 $scope.$apply?

我正在使用$scope.$apply进行回调,特别是Stripe。目前我有一些代码,比如varstripeCallback=function(status,response){if(!response.error){//dosomething}else{//dosomethingelse}};$scope.submit=function(){$scope.errorMessage='Processing...';$scope.buttonDisabled=true;//can'tusebindingsforsomereasonvarmyForm=$('#paymentform');St