摘要: var myAjax = { request: function(url, type, data, callback) { $.ajax(url, { type: type, data: data, cache: false, success: callba... 阅读全文
posted @ 2014-09-24 11:25 hasayaki 阅读(232) 评论(0) 推荐(0) 编辑
摘要: .ellipsis{ max-width: 260px; // 自定义 overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } 阅读全文
posted @ 2014-09-23 16:17 hasayaki 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 在输入图片之前调用ob_clean(); 阅读全文
posted @ 2014-09-17 11:05 hasayaki 阅读(336) 评论(0) 推荐(0) 编辑
摘要: function getURL(){ var args = {}; var query = location.search.substring(1); //获得了当前链接的中?号后的参数 var pairs = query.split("&"); for(var i = 0; i < pairs.... 阅读全文
posted @ 2014-09-10 11:41 hasayaki 阅读(771) 评论(0) 推荐(0) 编辑
摘要: /** * sql模糊查询特殊字符(\,%和_)处理 * * @param string $str * @return string */ public static function like_search_specialchars($str){ return str_rep... 阅读全文
posted @ 2014-09-01 10:19 hasayaki 阅读(3666) 评论(0) 推荐(0) 编辑
摘要: 修改apache配置文件httpd.conf一、监听多个端口在Listen 80后添加监听端口,如Listen 80Listen 8080Listen 8008二、反向代理设置1、取消一下模块注释(即去掉前面的#)LoadModule proxy_module modules/mod_proxy.s... 阅读全文
posted @ 2014-08-27 13:57 hasayaki 阅读(1324) 评论(0) 推荐(0) 编辑
摘要: if($(document.body).height() < $(window).height()){ $("#footer").css({position:'fixed',bottom:0,width:'100%'});}$(window).resize(function() { if($(doc... 阅读全文
posted @ 2014-08-22 16:50 hasayaki 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 1、变量名称2、变量描述3、是否为空4、默认值5、允许值6、最小长度7、最大长度8、是否不安全9、是否为数据库表字段 阅读全文
posted @ 2014-06-04 17:31 hasayaki 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1、空白输入2、超长输入(如大于256个字符)3、特殊字符(如·!@#¥%……&*()—=|、;‘:;'"《》?。,)4、控制字符(如\r\n等)5、其它编码数据(如ASCII、Unicode、GBK、UTF-8、八进制和十六进制)6、二进制数据(音视频、图像、可执行程序)7、SQL注入8、跨站脚本 阅读全文
posted @ 2014-06-04 17:26 hasayaki 阅读(166) 评论(0) 推荐(0) 编辑
摘要: php socket模拟http中post或者get提交数据的示例代码。代码:sock_post.php:Java代码'hello'));echo$re;?>get_post.php:Java代码 阅读全文
posted @ 2013-11-06 11:16 hasayaki 阅读(291) 评论(0) 推荐(0) 编辑