public function findfile($arr) { $files = array();
foreach ($arr as $file) { $child = glob($file."/*"); ...
分类:
其他好文 时间:
2014-06-29 15:05:49
阅读次数:
200
同时适合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
/** * Utility function for retrieving the text
value of an array of DOM nodes * @param {Array|Element} elem */ getText =
Sizzle.getTex...
分类:
Web程序 时间:
2014-06-07 03:37:39
阅读次数:
240
20140527-在jQuery中设置文本框回车事件
该代码要完成的效果是,用户在文本框输入完毕以后,按下回车键,立即触发"搜索"的单击事件。 例如:
$("#search_user_name").keydown(function (e) { // search_user_name为文本框ID va...
分类:
Web程序 时间:
2014-06-07 03:34:09
阅读次数:
257
*&---------------------------------------------------------------------**&REPORTZ_TRFI0003*&*&--------------------------------------------------------...
分类:
其他好文 时间:
2014-06-07 03:08:10
阅读次数:
317
规则1:隔离应用逻辑 这会让你的代码容易调试规则2:不要分发事件对象
event对象包含了太多信息// a good examplevar handlePopup = { // 事件句柄,处理所有和event对象有关的东西
handleClick: function (e) { ...
分类:
编程语言 时间:
2014-06-07 03:01:00
阅读次数:
255
在开发中,我们经常需要判断某个对象是否为数组类型,在Js中检测对象类型的常见方法都有哪些呢?typeof 操作符对于Function, String,
Number ,Undefined 等几种类型的对象来说,他完全可以胜任,但是为Array时1vararr=newArray("1","2","3"...
分类:
Web程序 时间:
2014-06-07 02:54:29
阅读次数:
302