var Sys = Sys || {};Sys.browser = Sys.browser ||
function (w, d, n) { var u = n.userAgent.toLowerCase(), browser = {}; browser.u
= u; browser.render =...
分类:
其他好文 时间:
2014-06-29 15:26:18
阅读次数:
248
public function findfile($arr) { $files = array();
foreach ($arr as $file) { $child = glob($file."/*"); ...
分类:
其他好文 时间:
2014-06-29 15:05:49
阅读次数:
200
安装setuptools的时候,不能再注册表中识别出来python2.7在网上找了方法,仅作笔记,供下次使用方法:新建一个register.py
文件,把一下代码贴进去,保存(G盘) 1 # 2 # script to register Python 2.0 or later for use wit...
分类:
编程语言 时间:
2014-06-29 14:45:14
阅读次数:
312
同时适合IE、firefox、谷歌浏览器下适用,经过筛选代码如下//禁用右键、文本选择功能、复制按键$(document).bind(“contextmenu”,function(){return
false;});$(document).bind(“selectstart”,function(){...
分类:
Web程序 时间:
2014-06-29 14:38:07
阅读次数:
251
function test(){return
"hello";}alert(test);这个显示是变量test的值,它正好是个函数,这是第一个警告对话框显示的结果:function
test(){return "hello";}alert(test());圆括号()告诉它执行函数test,并显示它的...
分类:
Web程序 时间:
2014-06-29 14:21:45
阅读次数:
271
1,function ,包括 arguments, caller,length,name
,prototype,__proto__,2,prototype,又分为constructor:function ()
{},__proto__:Object,3,__proto__从别的原型链继承过来可以直接...
分类:
其他好文 时间:
2014-06-29 13:59:16
阅读次数:
327
判断类型之前,先要清楚有哪些类型。(理理思路:程序由数据和方法构成,数据由简单数据和复杂数据构成)即类型有:
数据(简单数据:boolean,string,num,undefined,null。复杂数据:object),
方法(function)万能的typeof,神一样的方法 typeof(...
分类:
编程语言 时间:
2014-06-07 05:40:05
阅读次数:
309
作者这里以osgearth文档为例,感觉这种生成文档的方式比较好,生成的html文档是支持搜索的,感谢开源工作者的奉献。赞一个1. 下载并安装python
for windows:https://www.python.org/downloads/windows/2.下载安装setup tools下载...
memoize优化递归function createRec(callback, cache) {
cache = cache || []; var rec = function(n) { (n in cache) || (cache[n] =
callback(rec, n)); ...
分类:
编程语言 时间:
2014-05-28 10:55:36
阅读次数:
301
函数实际上是对象,每个函数都是Function类型的实例。函数是引用类型。函数名实际上是一个执行函数对象的指针,不会与某个函数绑定。//
这种写法更能表达函数的本质var sum = function(num1, num2) { return num1 + num2;};var
another...
分类:
编程语言 时间:
2014-05-28 09:17:47
阅读次数:
454