亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? engine.js

?? Struts+Spring開發
?? JS
?? 第 1 頁 / 共 3 頁
字號:
/*
 * Copyright 2005 Joe Walker
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * Declare a constructor function to which we can add real functions.
 * @constructor
 */
function DWREngine() { }

/**
 * Set an alternative error handler from the default alert box.
 * @see http://getahead.ltd.uk/dwr/browser/engine/errors
 */
DWREngine.setErrorHandler = function(handler) {
  DWREngine._errorHandler = handler;
};

/**
 * Set an alternative warning handler from the default alert box.
 * @see http://getahead.ltd.uk/dwr/browser/engine/errors
 */
DWREngine.setWarningHandler = function(handler) {
  DWREngine._warningHandler = handler;
};

/**
 * Set a default timeout value for all calls. 0 (the default) turns timeouts off.
 * @see http://getahead.ltd.uk/dwr/browser/engine/errors
 */
DWREngine.setTimeout = function(timeout) {
  DWREngine._timeout = timeout;
};

/**
 * The Pre-Hook is called before any DWR remoting is done.
 * @see http://getahead.ltd.uk/dwr/browser/engine/hooks
 */
DWREngine.setPreHook = function(handler) {
  DWREngine._preHook = handler;
};

/**
 * The Post-Hook is called after any DWR remoting is done.
 * @see http://getahead.ltd.uk/dwr/browser/engine/hooks
 */
DWREngine.setPostHook = function(handler) {
  DWREngine._postHook = handler;
};

/** XHR remoting method constant. See DWREngine.setMethod() */
DWREngine.XMLHttpRequest = 1;

/** XHR remoting method constant. See DWREngine.setMethod() */
DWREngine.IFrame = 2;

/**
 * Set the preferred remoting method.
 * @param newmethod One of DWREngine.XMLHttpRequest or DWREngine.IFrame
 * @see http://getahead.ltd.uk/dwr/browser/engine/options
 */
DWREngine.setMethod = function(newmethod) {
  if (newmethod != DWREngine.XMLHttpRequest && newmethod != DWREngine.IFrame) {
    DWREngine._handleError("Remoting method must be one of DWREngine.XMLHttpRequest or DWREngine.IFrame");
    return;
  }
  DWREngine._method = newmethod;
};

/**
 * Which HTTP verb do we use to send results? Must be one of "GET" or "POST".
 * @see http://getahead.ltd.uk/dwr/browser/engine/options
 */
DWREngine.setVerb = function(verb) {
  if (verb != "GET" && verb != "POST") {
    DWREngine._handleError("Remoting verb must be one of GET or POST");
    return;
  }
  DWREngine._verb = verb;
};

/**
 * Ensure that remote calls happen in the order in which they were sent? (Default: false)
 * @see http://getahead.ltd.uk/dwr/browser/engine/ordering
 */
DWREngine.setOrdered = function(ordered) {
  DWREngine._ordered = ordered;
};

/**
 * Do we ask the XHR object to be asynchronous? (Default: true)
 * @see http://getahead.ltd.uk/dwr/browser/engine/options
 */
DWREngine.setAsync = function(async) {
  DWREngine._async = async;
};

/**
 * The default message handler.
 * @see http://getahead.ltd.uk/dwr/browser/engine/errors
 */
DWREngine.defaultMessageHandler = function(message) {
  if (typeof message == "object" && message.name == "Error" && message.description) {
    alert("Error: " + message.description);
  }
  else {
    alert(message);
  }
};

/**
 * For reduced latency you can group several remote calls together using a batch.
 * @see http://getahead.ltd.uk/dwr/browser/engine/batch
 */
DWREngine.beginBatch = function() {
  if (DWREngine._batch) {
    DWREngine._handleError("Batch already started.");
    return;
  }
  // Setup a batch
  DWREngine._batch = {};
  DWREngine._batch.map = {};
  DWREngine._batch.paramCount = 0;
  DWREngine._batch.map.callCount = 0;
  DWREngine._batch.metadata = {};
  DWREngine._batch.preHooks = [];
  DWREngine._batch.postHooks = [];
};

/**
 * Finished grouping a set of remote calls together. Go and execute them all.
 * @see http://getahead.ltd.uk/dwr/browser/engine/batch
 */
DWREngine.endBatch = function(options) {
  var batch = DWREngine._batch;
  if (batch == null) {
    DWREngine._handleError("No batch in progress.");
    return;
  }
  // Merge the global batch level properties into the batch meta data
  if (options && options.preHook) batch.preHooks.unshift(options.preHook);
  if (options && options.postHook) batch.postHooks.push(options.postHook);
  if (DWREngine._preHook) batch.preHooks.unshift(DWREngine._preHook);
  if (DWREngine._postHook) batch.postHooks.push(DWREngine._postHook);

  if (!batch.method) batch.method = DWREngine._method;
  if (!batch.verb) batch.verb = DWREngine._verb;
  if (!batch.async) batch.async = DWREngine._async;

  batch.completed = false;

  // If we are in ordered mode, then we don't send unless the list of sent
  // items is empty
  if (!DWREngine._ordered) {
    DWREngine._sendData(batch);
    DWREngine._batches[DWREngine._batches.length] = batch;
  }
  else {
    if (DWREngine._batches.length == 0) {
      // We aren't waiting for anything, go now.
      DWREngine._sendData(batch);
      DWREngine._batches[DWREngine._batches.length] = batch;
    }
    else {
      // Push the batch onto the waiting queue
      DWREngine._batchQueue[DWREngine._batchQueue.length] = batch;
    }
  }

  DWREngine._batch = null;
};

//==============================================================================
// Only private stuff below here
//==============================================================================

/** A function to call if something fails. */
DWREngine._errorHandler = DWREngine.defaultMessageHandler;

/** A function to call to alert the user to some breakage. */
DWREngine._warningHandler = DWREngine.defaultMessageHandler;

/** A function to be called before requests are marshalled. Can be null. */
DWREngine._preHook = null;

/** A function to be called after replies are received. Can be null. */
DWREngine._postHook = null;

/** An array of the batches that we have sent and are awaiting a reply on. */
DWREngine._batches = [];

/** In ordered mode, the array of batches waiting to be sent */
DWREngine._batchQueue = [];

/** A map of all the known current call metadata objects */
DWREngine._callData = {};

/** What is the default remoting method */
DWREngine._method = DWREngine.XMLHttpRequest;

/** What is the default remoting verb (ie GET or POST) */
DWREngine._verb = "POST";

/** Do we attempt to ensure that calls happen in the order in which they were sent? */
DWREngine._ordered = false;

/** Do we make the calls async? */
DWREngine._async = true;

/** The current batch (if we are in batch mode) */
DWREngine._batch = null;

/** The global timeout */
DWREngine._timeout = 0;

/** ActiveX objects to use when we want to convert an xml string into a DOM object. */
DWREngine._DOMDocument = ["Msxml2.DOMDocument.5.0", "Msxml2.DOMDocument.4.0", "Msxml2.DOMDocument.3.0", "MSXML2.DOMDocument", "MSXML.DOMDocument", "Microsoft.XMLDOM"];

/** The ActiveX objects to use when we want to do an XMLHttpRequest call. */
DWREngine._XMLHTTP = ["Msxml2.XMLHTTP.5.0", "Msxml2.XMLHTTP.4.0", "MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP", "Microsoft.XMLHTTP"];

/**
 * @private Send a request. Called by the Javascript interface stub
 * @param path part of URL after the host and before the exec bit without leading or trailing /s
 * @param scriptName The class to execute
 * @param methodName The method on said class to execute
 * @param func The callback function to which any returned data should be passed
 *       if this is null, any returned data will be ignored
 * @param vararg_params The parameters to pass to the above class
 */
DWREngine._execute = function(path, scriptName, methodName, vararg_params) {
  var singleShot = false;
  if (DWREngine._batch == null) {
    DWREngine.beginBatch();
    singleShot = true;
  }
  // To make them easy to manipulate we copy the arguments into an args array
  var args = [];
  for (var i = 0; i < arguments.length - 3; i++) {
    args[i] = arguments[i + 3];
  }
  // All the paths MUST be to the same servlet
  if (DWREngine._batch.path == null) {
    DWREngine._batch.path = path;
  }
  else {
    if (DWREngine._batch.path != path) {
      DWREngine._handleError("Can't batch requests to multiple DWR Servlets.");
      return;
    }
  }
  // From the other params, work out which is the function (or object with
  // call meta-data) and which is the call parameters
  var params;
  var callData;
  var firstArg = args[0];
  var lastArg = args[args.length - 1];

  if (typeof firstArg == "function") {
    callData = { callback:args.shift() };
    params = args;
  }
  else if (typeof lastArg == "function") {
    callData = { callback:args.pop() };
    params = args;
  }
  else if (typeof lastArg == "object" && lastArg.callback != null && typeof lastArg.callback == "function") {
    callData = args.pop();
    params = args;
  }
  else if (firstArg == null) {
    // This could be a null callback function, but if the last arg is also
    // null then we can't tell which is the function unless there are only
    // 2 args, in which case we don't care!
    if (lastArg == null && args.length > 2) {
      if (DWREngine._warningHandler) {
        DWREngine._warningHandler("Ambiguous nulls at start and end of parameter list. Which is the callback function?");
      }
    }
    callData = { callback:args.shift() };
    params = args;
  }
  else if (lastArg == null) {
    callData = { callback:args.pop() };
    params = args;
  }
  else {
    if (DWREngine._warningHandler) {
      DWREngine._warningHandler("Missing callback function or metadata object.");
    }
    return;
  }

  // Get a unique ID for this call
  var random = Math.floor(Math.random() * 10001);
  var id = (random + "_" + new Date().getTime()).toString();
  DWREngine._callData[id] = callData;
  var prefix = "c" + DWREngine._batch.map.callCount + "-";

  if (callData.preHook) DWREngine._batch.preHooks.unshift(callData.preHook);
  if (callData.postHook) DWREngine._batch.postHooks.push(callData.postHook);
  if (!callData.errorHandler) callData.errorHandler = DWREngine._errorHandler;
  if (!callData.warningHandler) callData.warningHandler = DWREngine._warningHandler;
  if (!callData.timeout) callData.timeout = DWREngine._timeout;

  // merge the metadata from this call into the batch
  if (callData != null)  {
    for (var prop in callData) {
      DWREngine._batch.metadata[prop] = callData[prop];
    }
  }
  DWREngine._batch.map[prefix + "scriptName"] = scriptName;
  DWREngine._batch.map[prefix + "methodName"] = methodName;
  DWREngine._batch.map[prefix + "id"] = id;

  // Serialize the parameters into batch.map
  DWREngine._addSerializeFunctions();
  for (i = 0; i < params.length; i++) {
    DWREngine._serializeAll(DWREngine._batch, [], params[i], prefix + "param" + i);
  }
  DWREngine._removeSerializeFunctions();

  // Now we have finished remembering the call, we incr the call count
  DWREngine._batch.map.callCount++;
  if (singleShot) {
    DWREngine.endBatch();
  }
};

/**
 * @private Actually send the block of data in the batch object.
 */
DWREngine._sendData = function(batch) {
  // If the batch is empty, don't send anything

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
狠狠狠色丁香婷婷综合激情| 国产精品久久久久久久久快鸭 | 一区二区三区在线免费播放| 亚洲最色的网站| 男人操女人的视频在线观看欧美| 国产自产2019最新不卡| 99re热视频这里只精品| 欧美人xxxx| 国产欧美一区二区精品仙草咪| 亚洲精品免费在线播放| 免费的国产精品| 91在线视频在线| 日韩欧美国产小视频| 国产精品电影院| 蜜桃av一区二区三区电影| 成人h动漫精品一区二| 欧美猛男超大videosgay| 久久伊人中文字幕| 亚洲免费在线看| 精品一区二区在线看| 99精品视频免费在线观看| 欧美一区二区精品| 亚洲天天做日日做天天谢日日欢| 久久国产三级精品| 91日韩一区二区三区| 欧美精品一区二区蜜臀亚洲| 亚洲综合在线免费观看| 国产精品伊人色| 欧美色视频在线| 一区二区中文字幕在线| 久久精品av麻豆的观看方式| 91福利视频久久久久| 国产日产欧美一区二区三区| 日韩中文欧美在线| av电影一区二区| 日韩欧美一区二区在线视频| 一区二区三区中文字幕| 国产91对白在线观看九色| 日韩午夜在线影院| 午夜视频在线观看一区二区| 91在线观看美女| 国产欧美日韩三级| 久久99精品久久久| 欧美精品色一区二区三区| 亚洲色图视频免费播放| 丁香另类激情小说| 久久九九久久九九| 久国产精品韩国三级视频| 欧美色倩网站大全免费| 亚洲精品成人精品456| 国产成人aaa| 久久一区二区三区四区| 蜜桃在线一区二区三区| 欧美久久一二区| 亚洲午夜久久久久久久久久久 | 一区在线观看视频| 国产精品亚洲综合一区在线观看| 91麻豆精品国产自产在线观看一区 | 午夜精品久久久久久久久久久| 不卡的av电影| 国产精品日日摸夜夜摸av| 国产精品18久久久久久久久 | 国产最新精品免费| 日韩视频免费观看高清完整版在线观看| 伊人一区二区三区| 一本久久a久久精品亚洲| 中国av一区二区三区| 粉嫩13p一区二区三区| 国产在线观看免费一区| 51精品秘密在线观看| 午夜欧美大尺度福利影院在线看| 日本大香伊一区二区三区| 亚洲精品乱码久久久久久日本蜜臀| av电影天堂一区二区在线| 国产精品成人一区二区艾草| www.亚洲国产| 亚洲精品一二三| 欧美主播一区二区三区美女| 亚洲午夜激情网页| 欧美日韩小视频| 日韩av二区在线播放| 日韩欧美精品在线视频| 国产一区欧美二区| 国产精品伦理在线| 99re8在线精品视频免费播放| 亚洲欧美韩国综合色| 欧美在线一区二区三区| 视频一区二区中文字幕| 精品国产乱码久久久久久免费 | 17c精品麻豆一区二区免费| 一本大道久久精品懂色aⅴ| 亚洲第四色夜色| 91精品国产综合久久久久| 麻豆精品一区二区av白丝在线| 精品免费国产二区三区| 国产高清成人在线| 亚洲视频在线观看一区| 欧美视频在线观看一区二区| 青娱乐精品在线视频| 国产校园另类小说区| 91捆绑美女网站| 丝袜亚洲另类欧美| 久久久久久久综合日本| 99久久er热在这里只有精品66| 亚洲国产欧美日韩另类综合| 老司机午夜精品| 国产欧美日韩另类视频免费观看| 91麻豆精品视频| 视频一区欧美日韩| 国产欧美日韩综合| 精品视频在线免费| 国产一区二区精品在线观看| 亚洲三级在线免费| 欧美一区二区私人影院日本| 国产91精品欧美| 亚洲不卡在线观看| 国产亚洲美州欧州综合国| 欧美色涩在线第一页| 国产精品99久久久久久宅男| 一区二区三区美女| 久久蜜桃av一区二区天堂| 91国内精品野花午夜精品| 国产一区二区三区香蕉| 亚洲精品久久久蜜桃| 欧美成人福利视频| 在线免费一区三区| 精品一区二区在线免费观看| 亚洲激情中文1区| 久久午夜国产精品| 国产精品无码永久免费888| 久久久久久99久久久精品网站| 成人成人成人在线视频| 亚洲欧美日韩系列| 欧美成人video| 欧美日韩一区视频| 高清shemale亚洲人妖| 蜜臀av一区二区| 亚洲免费高清视频在线| 精品久久99ma| 欧美一a一片一级一片| 国产精品一区二区黑丝| 五月婷婷综合网| 国产精品天天摸av网| 麻豆精品一区二区综合av| 国产精品欧美综合在线| 91精品国产免费| 国产成人精品免费网站| 亚洲国产精品久久人人爱| 国产精品久久久久久户外露出 | 天堂成人国产精品一区| 亚洲人成网站色在线观看| 久久婷婷久久一区二区三区| 欧美日韩精品系列| 91蜜桃网址入口| 岛国av在线一区| 国产乱码精品一区二区三区忘忧草| 午夜精品久久久久| 一区二区国产盗摄色噜噜| 国产精品入口麻豆九色| 国产清纯美女被跳蛋高潮一区二区久久w | 久久久久久久久99精品| 日韩欧美一区电影| 欧美一区二区三区在线观看| 欧美日韩精品三区| 在线一区二区三区四区| 99久久精品免费看国产| 成人性生交大片| 国产成人在线视频播放| 国产精品 欧美精品| 国产一区二区电影| 韩国成人在线视频| 久久99国产精品久久99果冻传媒| 免费人成网站在线观看欧美高清| 偷拍一区二区三区| 视频一区在线播放| 视频一区在线视频| 日本欧美加勒比视频| 视频在线在亚洲| 日本视频中文字幕一区二区三区 | 日韩免费观看高清完整版| 91精品在线免费观看| 91精品国产aⅴ一区二区| 欧美福利一区二区| 欧美一区在线视频| 欧美大片顶级少妇| 久久人人97超碰com| 国产嫩草影院久久久久| 中文一区在线播放| 国产精品久久久久久亚洲伦| 亚洲欧洲美洲综合色网| 亚洲欧美视频一区| 一区二区三区精品| 亚洲第一av色| 美女视频黄 久久| 国产一区二区中文字幕| 成人开心网精品视频| 一本色道亚洲精品aⅴ| 欧美日韩国产一区| 日韩一卡二卡三卡四卡| 久久久久久久精|