//简易函数;
abc(handler){
}
DWREngine.beginBatch(); 开始缓存;
DWREngine.endBatch();提交缓存;
DWREngine.defaultMessageHandler(abc);默认的消息句柄;
DWREngine.setTextHtmlHandler;当接收到html时发生的事件;<没有期待到javascript时,不解其意>
DWREngine._httpSessionId; 会话id;
DWREngine._scriptSessionId; 当前页的id;
DWREngine.setErrorHandler(abc); 默认错误句柄;
DWREngine.setWarningHandler(abc);默认警告句柄;
DWREngine.setTimeout(0); 超时时间设置,默认是0;
DWREngine.setPreHook(abc);当dwr进行远程调用的之前被调用;
DWREngine.setPostHook(abc);当dwr进行远程调用的之后被调用;
//三种调用方法;
DWREngine.XMLHttpRequest = 1;
DWREngine.IFrame = 2;
DWREngine.ScriptTag = 3;
DWREngine.setMethod(<1 or 2 or 3>);设置调用远程的方法;
DWREngine.setVerb = function(<'GET' or 'POST'>);设置发送数据的方法;
DWREngine.setOrdered(<true or false>);设置xhr的请求按顺序执行.<官方强烈建议不要用这个,会变的很慢而且无法预测.>
DWREngine.setAsync (<true or false>);设置xhr的请求方法是否异步?默认是true;(官方文档中强调,尽量不要修改该属性,如果修改后不会再其他方法中起效.并且有些时候会使你的浏览器无响应变得倾向于中止的状态,如果你要使用建议也设置超时选项).
------------------------------------------------------------------
//以下未读懂,以后补充;
DWREngine.setPolling();已经废弃,由DWREngine.setReverseAjax()替代;
DWREngine.setReverseAjax = function(reverseAjax) {
DWREngine._reverseAjax = reverseAjax;
if (DWREngine._reverseAjax) {
DWREngine._triggerNextPoll(0);
}
};
DWREngine.setPollUsingComet = function(pollComet) {
DWREngine._pollComet = pollComet;
};
DWREngine.setPollMethod(<1 or 2 or 3>);设置****的方法;
abc(handler){
}
DWREngine.beginBatch(); 开始缓存;
DWREngine.endBatch();提交缓存;
DWREngine.defaultMessageHandler(abc);默认的消息句柄;
DWREngine.setTextHtmlHandler;当接收到html时发生的事件;<没有期待到javascript时,不解其意>
DWREngine._httpSessionId; 会话id;
DWREngine._scriptSessionId; 当前页的id;
DWREngine.setErrorHandler(abc); 默认错误句柄;
DWREngine.setWarningHandler(abc);默认警告句柄;
DWREngine.setTimeout(0); 超时时间设置,默认是0;
DWREngine.setPreHook(abc);当dwr进行远程调用的之前被调用;
DWREngine.setPostHook(abc);当dwr进行远程调用的之后被调用;
//三种调用方法;
DWREngine.XMLHttpRequest = 1;
DWREngine.IFrame = 2;
DWREngine.ScriptTag = 3;
DWREngine.setMethod(<1 or 2 or 3>);设置调用远程的方法;
DWREngine.setVerb = function(<'GET' or 'POST'>);设置发送数据的方法;
DWREngine.setOrdered(<true or false>);设置xhr的请求按顺序执行.<官方强烈建议不要用这个,会变的很慢而且无法预测.>
DWREngine.setAsync (<true or false>);设置xhr的请求方法是否异步?默认是true;(官方文档中强调,尽量不要修改该属性,如果修改后不会再其他方法中起效.并且有些时候会使你的浏览器无响应变得倾向于中止的状态,如果你要使用建议也设置超时选项).
------------------------------------------------------------------
//以下未读懂,以后补充;
DWREngine.setPolling();已经废弃,由DWREngine.setReverseAjax()替代;
DWREngine.setReverseAjax = function(reverseAjax) {
DWREngine._reverseAjax = reverseAjax;
if (DWREngine._reverseAjax) {
DWREngine._triggerNextPoll(0);
}
};
DWREngine.setPollUsingComet = function(pollComet) {
DWREngine._pollComet = pollComet;
};
DWREngine.setPollMethod(<1 or 2 or 3>);设置****的方法;