我正在使用angularjs,并希望跨浏览器兼容。它可以在Chrome和firefox中正常工作,但是在IE11中却可以。
angular
.module('app')
.factory('AgencyFactory', AgencyFactory)
.factory('AdminService', adminService);
adminService.$inject = ['$resource'];
function adminService($resource) {
return {
UpdateLeadStatus:
$resource('/Agency/UpdateLeadStatus/Ids/:Ids/StatusId/:StatusId/ProducerId/:ProducerId', {}, {
change: {
method: 'POST',
params: {},
isArray: false
}
}),
AssignProducer: $resource('/Agency/AssignProducer/AutoAssign/:AutoAssign', {}, {
change: {
method: 'POST',
params: {},
isArray: false
}
}),
UpdateProducerAssignedStatus: $resource('/Agency/UpdateProducerAssignedStatus/Ids/:Ids/Status/:Status/AutoAssign/:AutoAssign', {}, {
change: {
method: 'POST',
params: {},
isArray: false
}
}),
};
}
AgencyFactory.$inject = ['AdminService', '$uibModal', 'modalService', '$rootScope'];
function AgencyFactory(AdminService, $uibModal, modalService, $rootScope) {
function UpdateLeadStatus(Ids, StatusId, ProducerId) {
return AdminService.UpdateLeadStatus.change({
Ids: Ids,
StatusId: StatusId,
ProducerId: ProducerId
}).$promise;
}
function AssignProducer(AutoAssign) {
return AdminService.AssignProducer.change({
AutoAssign: AutoAssign
}).$promise;
}
function UpdateProducerAssignedStatus(Ids, Status, AutoAssign) {
return AdminService.UpdateProducerAssignedStatus.change({
Ids: Ids,
Status: Status,
AutoAssign: AutoAssign
}).$promise;
}
return {
UpdateLeadStatus: UpdateLeadStatus,
AssignProducer: AssignProducer,
UpdateProducerAssignedStatus: UpdateProducerAssignedStatus,
};
}
})();
当我使用未缩小的代码时,它工作正常,但是当我缩小代码时,它显示了错误