首页 > 其他 > 详细

angular心得体会(一)

时间:2017-11-22 18:50:27      阅读:270      评论:0      收藏:0      [点我收藏+]

1、日期格式化
var today = new Date();
$scope.currentDate = $filter(‘date‘)(today, ‘yyyy-MM-dd‘);
console.info( $scope.currentDate);
2、页面传值
$state.go("main.merchantCenterIndex.productCancellationApplication",{"productDetail":null});

3、下载
window.open(ApiPath.api.downloadFile + ‘?fileId=‘ + eachList.fileId);

4、请求后台服务

productCancellationInfoServ.submitCancel($scope.productDto).then(
function(answer){
angular.alert("提交审核成功!");
$state.go("main.merchantCenterIndex.productCancellationApplication",{});
},function(error){
angular.alert("提交失败!");
}
);

angular心得体会(一)

原文:http://www.cnblogs.com/xu-blog/p/7880482.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!