当前位置

网站首页> 程序设计 > 开源项目 > 程序开发 > 浏览文章

angularjs devexpress - Chobits

作者:小梦 来源: 网络 时间: 2024-03-21 阅读:
angular.module('app').factory('DevService', function ($rootScope, $window) {    var service = {};    service.DoCallbackData = {};    service.WebForm_DoCallback = function (eventTarget, eventArgument, eventCallback, context, errorCallback, useAsync) {        service.DoCallbackData = {eventTarget: eventTarget,eventArgument: eventArgument,eventCallback: eventCallback,context: context,errorCallback: errorCallback,useAsync: useAsync,        };        $rootScope.$broadcast("WebForm_DoCallback");    }    var oldWebForm_DoCallback = $window.WebForm_DoCallback;    $window.WebForm_DoCallback = function (eventTarget, eventArgument, eventCallback, context, errorCallback, useAsync) {        service.WebForm_DoCallback(eventTarget, eventArgument, eventCallback, context, errorCallback, useAsync)        if (oldWebForm_DoCallback != null) {oldWebForm_DoCallback(eventTarget, eventArgument, eventCallback, context, errorCallback, useAsync);        }    };    return service;});

热点阅读

网友最爱