C语言 c++ php mysql nginx linux lnmp lamp lanmp memcache redis 面试 笔记 ppt 设计模式 问题 远程连接

05 2013 档案
递归函数中清空静态变量
摘要:/** * 函数中清空静态变量 * $i 第一次为空,会清空静态变量,下次调用时已经++ ,故不会在清空 */function array_multi2single($array, $i = 0) { static $result_array=array(); if(empty($i)) { $result_array = array(); } foreach($array as $key=>$value) { if(is_array($value)) { ... 阅读全文
posted @ 2013-05-30 00:39 思齐_ 阅读(1303) 评论(0) 推荐(0)
jsloader
摘要:/*** 用作cookie 代理相关的函数操作,* 需要 Ffunction.js 否则需要将 cookie 部分copy出来*///cookie代理iframfunction FCookieFrame(idPrefix,src,fun){ this._cf = document.createElement("iframe"); this._cf.id = idPrefix+"_cookie_frame"; this._cf.name = idPrefix+"_cookie_frame"; this._cf.style.display 阅读全文
posted @ 2013-05-29 01:38 思齐_ 阅读(823) 评论(0) 推荐(0)
由自动执行的匿名函数引起的js错误
摘要:<script>(function(){ alert(1); })()(function(){ alert(1); })()</script>上面的代码会提示这样的错误解决方法:<script>(function(){ alert(1); })();//增加一个分号(function(){ alert(1); })()</script>参考:https://github.com/filamentgroup/quickconcat/issues/11 https://github.com/imakewebthings/jquery-waypoin. 阅读全文
posted @ 2013-05-29 01:28 思齐_ 阅读(977) 评论(0) 推荐(0)