1 window事件2
window.onload=function(){alert("页面创建中****");};3
window.onunload=function(){alert("页面卸载中****");};4 window.onbefor...
分类:
Web程序 时间:
2014-05-09 04:34:03
阅读次数:
397
Consider a simple function that adds the first
N integers. (e.g.sum(5) = 1 + 2 + 3 + 4 + 5 = 15).Here is a simple Python
implementation that uses recu...
分类:
其他好文 时间:
2014-05-08 17:35:09
阅读次数:
286
/**
* 闭包的作用域
*/
fn1(); //fn1 能够执行,不会报错,对于通过function func_name()这种写法来定义的函数,永远都会被最先初始化。
function fn1(){
console.log("fn1");
}
fn2(); //报错:fn2 is not a function
/**
*使用如下方式定义函数,不会被先执行,如果在...
分类:
Web程序 时间:
2014-05-08 16:22:48
阅读次数:
367
window.onload=function() {
var img=document.getElementById("img").children;
var lis=document.getElementById('ul').getElementsByTagName("li"); //这里是获取需要执行动态效果的demo
...
分类:
编程语言 时间:
2014-05-08 16:06:15
阅读次数:
386
使用VLD测有没内存泄露的时候,出现(File and line number not available): (Function name unavailable)
查看VS控制台,发现
已加载“C:/WINDOWS/system32/dbghelp.dll”
说明VS加载了WINDOWS的dll而不是最新的VLD的dbghelp.dll
解决方案:
只需把VLD 安装路径下...
分类:
其他好文 时间:
2014-05-08 15:41:04
阅读次数:
354
在lua中创建一个Actor对象function Actor.new() local temp
= {} setmetatable(temp, Actor) temp.x = 10 temp.y = 20 return tempendobj =
Actor.new()那么obj.x = 1...
分类:
其他好文 时间:
2014-05-08 15:04:41
阅读次数:
348
//初始化对象并发出XMLHttpRequest请求var xmlHttp;function
getXmlHttp(){ if(window.ActiveXObject){ xmlHttp = new
ActiveXObject("MICROSOFT.XMLHTTP"); ...
分类:
其他好文 时间:
2014-05-08 07:19:46
阅读次数:
378
Oracle优化器一共有三种即,RULE (基于规则),COST (基于成本)以及CHOOSE
(选择性),我们大家都知道设置缺省的相关Oracle优化器,其可以通过对init.ora文件中OPTIMIZER_MODE参数的各种声明。
如RULE,COST,CHOOSE,ALL_ROWS,FIRS....
分类:
数据库 时间:
2014-05-08 06:40:42
阅读次数:
429
Given an array of integers, find two numbers
such that they add up to a specific target number.The function twoSum should
return indices of the two nu...
分类:
其他好文 时间:
2014-05-08 06:33:29
阅读次数:
339
每次操作select都要查资料,干脆总结一下。为select设置placeholder为Select添加事件,当选择其中一项时触发$("#select_id").change(function(){
//code...});jQuery获取Select选择的Text和Value:var che...
分类:
Web程序 时间:
2014-05-08 05:48:25
阅读次数:
509