- 浏览: 252073 次
- 性别:
- 来自: 上海
文章分类
最新评论
-
无它唯勤:
...
Spring Ioc AOP -
dubaopeng:
挺好的,拿去改改!
java 解析csv文件 -
灵程大哥:
先试一下,看行不行
java 判断文本文件编码 -
pxjianke:
谢谢兄弟。我现在在测试插入千万级数据。做测试。这个太有用了。
Oracle 高速批量速插入数据 解决方案
var XmlHttpPool = {
m_MaxPoolLength : 10,
m_XmlHttpPool : [],
__requestObject : function() {
var xmlhttp = null;
var pool = this.m_XmlHttpPool;
for (var i = 0; i < pool.length; ++i) {
if (pool[i].readyState == 4 || pool[i].readyState == 0) {
xmlhttp = pool[i];
break;
}
}
if (xmlhttp == null) {
return this.__extendPool();
}
return xmlhttp;
},
__extendPool : function() {
if (this.m_XmlHttpPool.length < this.m_MaxPoolLength) {
var xmlhttp = null;
try {
xmlhttp = new ActiveXObject('MSXML2.XMLHTTP');
} catch(e) {
try {
xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
} catch(e2) {
}
}
if (xmlhttp) {
this.m_XmlHttpPool.push(xmlhttp);
}
return xmlhttp;
}
},
GetRemoteData : function(url, callback) {
this.__receiveRemoteData(url, callback, 'GET', null);
},
GetRemoteDataXML : function(url, callback) {
this.__receiveRemoteDataXML(url, callback, 'GET', null);
},
GetRemoteDataEx : function(url) {
return this.__receiveRemoteDataEx(url, 'GET', null);
},
GetRemoteDataExXML : function(url, callback) {
this.__receiveRemoteDataExXML(url, 'GET', null);
},
PostRemoteData : function(url, callback, data) {
this.__receiveRemoteData(url, callback, 'POST', data);
},
PostRemoteDataXML : function(url, callback, data) {
this.__receiveRemoteDataXML(url, callback, 'POST', data);
},
PostRemoteDataEx : function(url, data) {
return this.__receiveRemoteDataEx(url, 'POST', data);
},
PostRemoteDataExXML : function(url, data) {
return this.__receiveRemoteDataExXML(url, 'POST', data);
},
__receiveRemoteData : function(url, callback, httpmethod, data) {
var xmlhttp = this.__requestObject();
if (!xmlhttp) {
return null;
}
xmlhttp.open(httpmethod, url, true);
if (httpmethod == 'POST') {
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
}
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 || xmlhttp.readyState == 'complete') {
callback(xmlhttp.responseText);
}
};
xmlhttp.send(data);
},
__receiveRemoteDataEx : function(url, httpmethod, data) {
var xmlhttp = this.__requestObject();
if (!xmlhttp) {
return null;
}
xmlhttp.open(httpmethod, url, false);
if (httpmethod == 'POST') {
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
}
xmlhttp.send(data);
if (xmlhttp.status == 200) {
return xmlhttp.responseText;
}
return '';
},
__receiveRemoteDataXML : function(url, callback, httpmethod, data) {
var xmlhttp = this.__requestObject();
if (!xmlhttp) {
return null;
}
xmlhttp.open(httpmethod, url, true);
if (httpmethod == 'POST') {
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
}
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 || xmlhttp.readyState == 'complete') {
callback(xmlhttp.responseXML);
}
};
xmlhttp.send(data);
},
__receiveRemoteDataExXML : function(url, httpmethod, data) {
var xmlhttp = this.__requestObject();
if (!xmlhttp) {
return null;
}
xmlhttp.open(httpmethod, url, false);
if (httpmethod == 'POST') {
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
}
xmlhttp.send(data);
if (xmlhttp.status == 200) {
return xmlhttp.responseXML;
}
return '';
},
CancelAll : function() {
var extendPool = this.__extendPool;
this.__extendPool = function() {
return null;
}
for (var i = 0; i < this.m_XmlHttpPool.length; ++i) {
this.m_XmlHttpPool[i].abort();
}
this.__extendPool = extendPool;
}
};
m_MaxPoolLength : 10,
m_XmlHttpPool : [],
__requestObject : function() {
var xmlhttp = null;
var pool = this.m_XmlHttpPool;
for (var i = 0; i < pool.length; ++i) {
if (pool[i].readyState == 4 || pool[i].readyState == 0) {
xmlhttp = pool[i];
break;
}
}
if (xmlhttp == null) {
return this.__extendPool();
}
return xmlhttp;
},
__extendPool : function() {
if (this.m_XmlHttpPool.length < this.m_MaxPoolLength) {
var xmlhttp = null;
try {
xmlhttp = new ActiveXObject('MSXML2.XMLHTTP');
} catch(e) {
try {
xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
} catch(e2) {
}
}
if (xmlhttp) {
this.m_XmlHttpPool.push(xmlhttp);
}
return xmlhttp;
}
},
GetRemoteData : function(url, callback) {
this.__receiveRemoteData(url, callback, 'GET', null);
},
GetRemoteDataXML : function(url, callback) {
this.__receiveRemoteDataXML(url, callback, 'GET', null);
},
GetRemoteDataEx : function(url) {
return this.__receiveRemoteDataEx(url, 'GET', null);
},
GetRemoteDataExXML : function(url, callback) {
this.__receiveRemoteDataExXML(url, 'GET', null);
},
PostRemoteData : function(url, callback, data) {
this.__receiveRemoteData(url, callback, 'POST', data);
},
PostRemoteDataXML : function(url, callback, data) {
this.__receiveRemoteDataXML(url, callback, 'POST', data);
},
PostRemoteDataEx : function(url, data) {
return this.__receiveRemoteDataEx(url, 'POST', data);
},
PostRemoteDataExXML : function(url, data) {
return this.__receiveRemoteDataExXML(url, 'POST', data);
},
__receiveRemoteData : function(url, callback, httpmethod, data) {
var xmlhttp = this.__requestObject();
if (!xmlhttp) {
return null;
}
xmlhttp.open(httpmethod, url, true);
if (httpmethod == 'POST') {
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
}
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 || xmlhttp.readyState == 'complete') {
callback(xmlhttp.responseText);
}
};
xmlhttp.send(data);
},
__receiveRemoteDataEx : function(url, httpmethod, data) {
var xmlhttp = this.__requestObject();
if (!xmlhttp) {
return null;
}
xmlhttp.open(httpmethod, url, false);
if (httpmethod == 'POST') {
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
}
xmlhttp.send(data);
if (xmlhttp.status == 200) {
return xmlhttp.responseText;
}
return '';
},
__receiveRemoteDataXML : function(url, callback, httpmethod, data) {
var xmlhttp = this.__requestObject();
if (!xmlhttp) {
return null;
}
xmlhttp.open(httpmethod, url, true);
if (httpmethod == 'POST') {
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
}
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 || xmlhttp.readyState == 'complete') {
callback(xmlhttp.responseXML);
}
};
xmlhttp.send(data);
},
__receiveRemoteDataExXML : function(url, httpmethod, data) {
var xmlhttp = this.__requestObject();
if (!xmlhttp) {
return null;
}
xmlhttp.open(httpmethod, url, false);
if (httpmethod == 'POST') {
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
}
xmlhttp.send(data);
if (xmlhttp.status == 200) {
return xmlhttp.responseXML;
}
return '';
},
CancelAll : function() {
var extendPool = this.__extendPool;
this.__extendPool = function() {
return null;
}
for (var i = 0; i < this.m_XmlHttpPool.length; ++i) {
this.m_XmlHttpPool[i].abort();
}
this.__extendPool = extendPool;
}
};
发表评论
-
JS 日期时间选择控件
2007-12-13 09:41 3697/**//***本日历选择控件由tiannet根据前人经验完 ... -
正则表达式-3
2008-01-03 17:09 677/** * 格式验证 * 目前支持格式有: * 整 ... -
javascript 操作文件
2008-01-09 17:08 611一、功能实现核心:File ... -
为什么要使用对象直接量,它和JSON有什么关系(转)
2008-03-13 16:09 919近来看了国外的一些知名网站的JS源码,发现里面很多地方都用到对 ... -
js 正则表达试
2008-03-20 10:10 848//校验是否全由数字组成 [code] function i ... -
js 回车键
2008-05-13 11:45 606<html> <head> ... -
二维数组排序
2008-06-05 15:26 1144<!--<br /> <br /> ... -
JS 两个 Select 移动 项
2008-06-10 13:32 931<!--<br /> <br /> ... -
js 客户端验证 工具
2008-06-12 15:49 641<!--<br /> <br /> ... -
javascript 验证表单 工具
2008-07-08 18:00 660<!--<br /> <br /> ... -
js 二级联动菜单
2008-09-02 13:46 492/**//**Write by:惠万鹏*Time :2 ... -
javascript 操作剪切板 ie firefox 兼容
2008-12-04 11:10 1250copyPaste.js<!--<br /> ... -
二级联动之二
2008-12-09 12:16 719<!--<br /> <br /> ... -
js 调试工具
2008-12-27 14:42 696FullSource是款小巧但有用的工具,相对于IE浏览器本身 ... -
省份 城市 javascript
2009-01-13 19:46 623<!--<br /> <br /> ... -
js hashTable
2009-10-16 15:09 722function Hashtable() { ... -
jquery ajax
2009-12-07 18:02 761<script type="text/jav ... -
关于遮罩
2010-02-26 16:28 737<div id="coverDiv" ...
相关推荐
内容涵盖VS 2005开发工具、SQL Server 2005安装管理策略与ASP.NET 2.0各种新功能,乃至于极度爆红的AJAX与Atlas Framework亦收录在本书之中,让您置身最顶尖的技术潮流。内容以专家级水平为基准点,透过精辟立论来...
内容涵盖VS 2005开发工具、SQL Server 2005安装管理策略与ASP.NET 2.0各种新功能,乃至于极度爆红的AJAX与Atlas Framework亦收录在本书之中,让您置身最顶尖的技术潮流。内容以专家级水平为基准点,透过精辟立论来...
内容涵盖VS 2005开发工具、SQL Server 2005安装管理策略与ASP.NET 2.0各种新功能,乃至于极度爆红的AJAX与Atlas Framework亦收录在本书之中,让您置身最顶尖的技术潮流。内容以专家级水平为基准点,透过精辟立论来...
内容涵盖VS 2005开发工具、SQL Server 2005安装管理策略与ASP.NET 2.0各种新功能,乃至于极度爆红的AJAX与Atlas Framework亦收录在本书之中,让您置身最顶尖的技术潮流。内容以专家级水平为基准点,透过精辟立论来...
内容涵盖VS 2005开发工具、SQL Server 2005安装管理策略与ASP.NET 2.0各种新功能,乃至于极度爆红的AJAX与Atlas Framework亦收录在本书之中,让您置身最顶尖的技术潮流。内容以专家级水平为基准点,透过精辟立论来...
内容涵盖VS 2005开发工具、SQL Server 2005安装管理策略与ASP.NET 2.0各种新功能,乃至于极度爆红的AJAX与Atlas Framework亦收录在本书之中,让您置身最顶尖的技术潮流。内容以专家级水平为基准点,透过精辟立论来...
内容涵盖VS 2005开发工具、SQL Server 2005安装管理策略与ASP.NET 2.0各种新功能,乃至于极度爆红的AJAX与Atlas Framework亦收录在本书之中,让您置身最顶尖的技术潮流。内容以专家级水平为基准点,透过精辟立论来...
内容涵盖VS 2005开发工具、SQL Server 2005安装管理策略与ASP.NET 2.0各种新功能,乃至于极度爆红的AJAX与Atlas Framework亦收录在本书之中,让您置身最顶尖的技术潮流。内容以专家级水平为基准点,透过精辟立论来...
内容涵盖VS 2005开发工具、SQL Server 2005安装管理策略与ASP.NET 2.0各种新功能,乃至于极度爆红的AJAX与Atlas Framework亦收录在本书之中,让您置身最顶尖的技术潮流。内容以专家级水平为基准点,透过精辟立论来...
内容涵盖VS 2005开发工具、SQL Server 2005安装管理策略与ASP.NET 2.0各种新功能,乃至于极度爆红的AJAX与Atlas Framework亦收录在本书之中,让您置身最顶尖的技术潮流。内容以专家级水平为基准点,透过精辟立论来...
内容涵盖VS 2005开发工具、SQL Server 2005安装管理策略与ASP.NET 2.0各种新功能,乃至于极度爆红的AJAX与Atlas Framework亦收录在本书之中,让您置身最顶尖的技术潮流。内容以专家级水平为基准点,透过精辟立论来...
内容涵盖VS 2005开发工具、SQL Server 2005安装管理策略与ASP.NET 2.0各种新功能,乃至于极度爆红的AJAX与Atlas Framework亦收录在本书之中,让您置身最顶尖的技术潮流。内容以专家级水平为基准点,透过精辟立论来...
内容涵盖VS 2005开发工具、SQL Server 2005安装管理策略与ASP.NET 2.0各种新功能,乃至于极度爆红的AJAX与Atlas Framework亦收录在本书之中,让您置身最顶尖的技术潮流。内容以专家级水平为基准点,透过精辟立论来...
内容涵盖VS 2005开发工具、SQL Server 2005安装管理策略与ASP.NET 2.0各种新功能,乃至于极度爆红的AJAX与Atlas Framework亦收录在本书之中,让您置身最顶尖的技术潮流。内容以专家级水平为基准点,透过精辟立论来...
内容涵盖VS 2005开发工具、SQL Server 2005安装管理策略与ASP.NET 2.0各种新功能,乃至于极度爆红的AJAX与Atlas Framework亦收录在本书之中,让您置身最顶尖的技术潮流。内容以专家级水平为基准点,透过精辟立论来...
内容涵盖VS 2005开发工具、SQL Server 2005安装管理策略与ASP.NET 2.0各种新功能,乃至于极度爆红的AJAX与Atlas Framework亦收录在本书之中,让您置身最顶尖的技术潮流。内容以专家级水平为基准点,透过精辟立论来...
内容涵盖VS 2005开发工具、SQL Server 2005安装管理策略与ASP.NET 2.0各种新功能,乃至于极度爆红的AJAX与Atlas Framework亦收录在本书之中,让您置身最顶尖的技术潮流。内容以专家级水平为基准点,透过精辟立论来...
内容涵盖VS 2005开发工具、SQL Server 2005安装管理策略与ASP.NET 2.0各种新功能,乃至于极度爆红的AJAX与Atlas Framework亦收录在本书之中,让您置身最顶尖的技术潮流。内容以专家级水平为基准点,透过精辟立论来...
内容涵盖VS 2005开发工具、SQL Server 2005安装管理策略与ASP.NET 2.0各种新功能,乃至于极度爆红的AJAX与Atlas Framework亦收录在本书之中,让您置身最顶尖的技术潮流。内容以专家级水平为基准点,透过精辟立论来...
内容涵盖VS 2005开发工具、SQL Server 2005安装管理策略与ASP.NET 2.0各种新功能,乃至于极度爆红的AJAX与Atlas Framework亦收录在本书之中,让您置身最顶尖的技术潮流。内容以专家级水平为基准点,透过精辟立论来...