摘要: let obj = {'name':jack, 'age':18, 'phone':13211112222}; var arr = [] for (let i in obj) { let x = {}; x[i] = obj[i]; arr.push(x) } console.log(arr); 阅读全文
posted @ 2018-08-06 16:48 青芒灬 阅读(119) 评论(0) 推荐(0) 编辑
摘要: // 打印 $scope.showPrint = false; //打印内容的显示状态 $scope.printFn = function(){ $scope.showPrint = true; var obj = angular.element('#print'); var newWindow = window.open("订单打... 阅读全文
posted @ 2018-08-06 14:23 青芒灬 阅读(139) 评论(0) 推荐(0) 编辑