Fork me on GitHub

03 2016 档案

摘要:.cnt_text .text img {/*width :auto !important;*/height :auto !important; max-width:660px;} 高度自适应,高度让她控制在660px; 阅读全文
posted @ 2016-03-10 16:36 我曾如此奢望 阅读(605) 评论(0) 推荐(0)
摘要:function check($sql_str) { $checks=eregi('select|insert|update|delete|\'|\/|\\\|\*|\.|union|into|load_file|outfile', $sql_str); // 进行过滤 if($checks){ r 阅读全文
posted @ 2016-03-09 17:14 我曾如此奢望 阅读(161) 评论(0) 推荐(0)
摘要://处理图片 private function imageDeal($param){ $arrType=array('image/jpg','image/bmp','image/png','image/jpeg'); $max_size=2*1024*1024; if(!empty($param[' 阅读全文
posted @ 2016-03-04 17:44 我曾如此奢望 阅读(214) 评论(0) 推荐(0)
摘要:function preview2(file) { var reader = new FileReader(); reader.onload = function(e) { //console.log(333); $('#test').attr("src", e.target.result) // 阅读全文
posted @ 2016-03-04 17:43 我曾如此奢望 阅读(276) 评论(0) 推荐(0)
摘要:mysql索引与查询优化什么是索引?索引其实是一个目录。通过各种数据结构实现,是(值=>行位置)的映射 索引的作用:1.提高访问速度2.实现主键、唯一键逻辑 索引使用场景数据量特别大的时候,进行全表扫描(无索引),就会很慢,有索引的话就会减少I/O,减少时间(等值查询) 索引的类型:指的是实现索引的 阅读全文
posted @ 2016-03-03 15:40 我曾如此奢望 阅读(228) 评论(0) 推荐(0)
摘要:1.mysql生态+DBA职业发展世界范围流行的开源关系型的数据库关系型数据库:mysql,oracle,sql server,access,postgresql,sqlite,sybase,informix,db2非关系型数据库hbase,mongodb,redis,cassandra,Berke 阅读全文
posted @ 2016-03-02 15:35 我曾如此奢望 阅读(276) 评论(0) 推荐(0)