app.controller(‘MeetingbookingController‘,[‘$http‘, function($http){ this.list = []; this.userlist =[]; var noticelist = this; this.get = function(){ $http.get(‘/m/employee/get_noticelist‘).success(function(data){ //console.log(data.data); if(data.status==‘200‘){ noticelist.list = data.data; for(var i in noticelist.list){ noticelist.list[i].context=$sce.trustAsHtml(data.data[i].context); } }else{ alert(data.msg); } }); }
时间: 2024-10-15 20:37:42