/** * 得到ajax对象 */function getajaxHttp() { var
xmlHttp; try { // Firefox, Opera 8.0+, Safari xmlHttp = new XMLHttpRequest();
...
分类:
Web程序 时间:
2014-05-18 19:14:53
阅读次数:
389
题目链接:
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5235
Calculate the Function
Time Limit: 2 Seconds Memory Limit: 65536 KB
You are given a list of numbers A1 A2 .. AN...
分类:
其他好文 时间:
2014-05-18 09:52:49
阅读次数:
410
1 user focus() 验证错误 光标弹回input标签。 面向对象2
function_construct ( ) 初始化函数3 private : 只能在类使用 。4 public $classname = " fg19"
公开的 变量5 public function ...
分类:
其他好文 时间:
2014-05-17 23:48:46
阅读次数:
403
一、字符串编码为gb2312,一个中文占俩字节public static function
chinesesubstr($str, $start, $len) { // $str指字符串,$start指字符串的起始位置,$len指字符串长度
$strlen = $start + $le...
分类:
Web程序 时间:
2014-05-17 22:47:15
阅读次数:
520
1.pre-defined function void funciton2.using
programmer-defined function a.declaration-- in main() or above main() in global
space b.definition -- just...
分类:
编程语言 时间:
2014-05-17 22:17:28
阅读次数:
268
//扩展方法$.GM.Format = function (source, params) { if
(arguments.length == 1) return function () { var args = $.makeArra...
分类:
Web程序 时间:
2014-05-17 21:49:16
阅读次数:
333
组合继承的问题是会调用2次超类型构造函数寄生组合式继承即通过借用构造函数来继承属性,通过原型链的形式来继承方法,思路:不必为了指定子类型的原型而调用超类型的原型,我们所需要的无非是超类型原型的一个副本而已function
inheritPrototype(subType,superType){ v....
分类:
编程语言 时间:
2014-05-17 20:58:26
阅读次数:
331
用Ajax验证验证码: 1 var xmlHttp; 2 function
getXmlHttp(){ 3 if(window.ActiveXObject){ 4 xmlHttp = new
ActiveXObject("MICROSOFT.XMLHTTP"); 5 ...
分类:
Web程序 时间:
2014-05-17 19:26:39
阅读次数:
316
超级简单又实用的jquery图片预览功能2012年10月14日 ? jQuery ? 评论数
2以下为javascript代码:this.imagePreview = function() { xOffset = 10; yOffset =
30; $("a.preview").hover( fu....
分类:
其他好文 时间:
2014-05-17 19:03:59
阅读次数:
327
话不多说,直接上代码html源码:
插入排序排序规则:输入框中输入以逗号隔开的的数字,排序结果按照从小到大升序排列结果显示区: js源代码// JavaScript Documentvar
myarr=[];$(function(){ //单击排序按钮触发的事件...
分类:
Web程序 时间:
2014-05-17 18:57:22
阅读次数:
302