function createXHR() { var request; if (typeof (XMLHttpRequest) == 'undefined') { request = new ActiveXObject('Microsoft.XMLHTTP'); } ...
分类:
其他好文 时间:
2014-06-15 07:58:05
阅读次数:
196
1.问题引入 多个业务模块针对同一个static变量的操作 要保证在不同线程中 各模块操作的是自身对应的变量对象例如:package org.lkl.thead;import java.util.Random;/** * 线程共享数据 * Function : * @author : Liaok.....
分类:
编程语言 时间:
2014-06-15 07:11:58
阅读次数:
264
//封装post时候,表单中所有具有name数据的表单元素的值,并返回“n=1&p=a”function serialize(formid) { var arr = []; var ipts = document.getElementById(formid).getElementsByT...
分类:
Web程序 时间:
2014-06-15 06:59:37
阅读次数:
219
JS数组去重var ddd = [1,2,4,5,2, 222,1,5,6];var uq = {};var rq = [];for(var i=0; ib?1:-1});//从小到大排序 alert(arrDemo);//10,50,51,100 arrDemo.sort(function(a,b...
分类:
Web程序 时间:
2014-06-15 06:28:54
阅读次数:
286
题目:Same TreeGiven two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally ...
分类:
其他好文 时间:
2014-06-15 00:53:09
阅读次数:
314
Object.extend=function(destination, source) {for(varpropertyinsource) { destination[property]=source[property];}returndestination;}Prototype 对Object类进...
分类:
Web程序 时间:
2014-06-15 00:47:58
阅读次数:
188
The procedure or function in this packagechecks if a database is ready to betransported to a target platform.and if a database has external tables,dir...
分类:
数据库 时间:
2014-06-15 00:38:40
阅读次数:
412
$_format = function (source, params) { if (arguments.length == 1) return function () { var args = $.makeArray(arguments); ...
分类:
Web程序 时间:
2014-06-15 00:28:21
阅读次数:
312
About getattrPython’s getattr function is used to fetch an attribute from an object, using a string object instead of an identifier to identify the at...
分类:
编程语言 时间:
2014-06-15 00:26:18
阅读次数:
487
$(document).ready(function(){ // 切换样式 $("#saturday > li > a").click(function(){ var thisobj = $(this).html(); $("#saturday").find(...
分类:
Web程序 时间:
2014-06-14 23:52:34
阅读次数:
408