码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
touch事件
可封装的js代码if (typeof YwkMobile == "undefined") var YwkMobile = {};YwkMobile.touchStyle = function(e, t) { $(e).bind("touchstart", function() { $(this).....
分类:其他好文   时间:2014-06-12 20:33:45    阅读次数:289
JS制作闪动的图片
1 var t; 2 function showportal() { 3 if ($("#图片ID").is(":hidden")) 4 $("#图片ID").show(); 5 else 6 ...
分类:Web程序   时间:2014-06-12 18:59:32    阅读次数:264
Process Hacker源码中的用户态hook的做法
processhacker-code-5632\1.x\trunk\NProcessHacker\hook.htypedef struct _PH_HOOK{ PVOID Function; PVOID Target; BOOLEAN Hooked; CHAR Bytes[5...
分类:其他好文   时间:2014-06-12 18:11:47    阅读次数:216
js闭包用法
闭包 既保证了 内部函数的私有性 又可以向外公开通过一个已有对象 向它注入属性 1 /** 2 * 闭包 3 * 在函数中定义的函数,在外部使用 4 * 1、在函数内部定义的函数,在外部不能访问 5 */ 6 function a(){ 7 /** 8 * b函数是...
分类:Web程序   时间:2014-06-12 17:23:55    阅读次数:224
常见排序算法(PHP实现)
function InsertSort($arr){ $num = count($arr); for($i = 1; $i = 0; $j--){ if($arr[$j] > $key){ $arr[$j + 1...
分类:Web程序   时间:2014-06-12 16:51:05    阅读次数:270
一个简单的MVC模型实现
function Event(sender) { this._sender = sender; this._listeners = [];}Event.prototype = { attach : function (listener) { this._listene...
分类:Web程序   时间:2014-06-12 16:38:51    阅读次数:272
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!