Fork me on github

01 2016 档案

摘要:function getDir($dir) { $dirArray[] = NULL; if (false != ($handle = opendir( $dir ))) { $i=0; while ( false !== ($file = readdir( $handle )) ) { //去掉" 阅读全文
posted @ 2016-01-20 11:19 Champion-水龙果 阅读(978) 评论(0) 推荐(0) 编辑
摘要:下载地址:files.cnblogs.com/files/qhorse/支持图片上传预览的uploadPreview.js插件.rar 阅读全文
posted @ 2016-01-20 10:09 Champion-水龙果 阅读(817) 评论(0) 推荐(0) 编辑
摘要:js <script language="javascript"> function randomString(len) { len = len || 32; var $chars = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678'; /**** 阅读全文
posted @ 2016-01-19 09:26 Champion-水龙果 阅读(321) 评论(0) 推荐(0) 编辑
摘要:/** * 导出数据为excel表格 *@param $data 一个二维数组,结构如同从数据库查出来的数组 *@param $title excel的第一行标题,一个数组,如果为空则没有标题 *@param $filename 下载的文件名 *@examlpe $stu = M ('User'); 阅读全文
posted @ 2016-01-16 16:12 Champion-水龙果 阅读(306) 评论(0) 推荐(0) 编辑
摘要:<?php function check_wap() { if (isset($_SERVER['HTTP_VIA'])) return true; if (isset($_SERVER['HTTP_X_NOKIA_CONNECTION_MODE'])) return true; if (isset 阅读全文
posted @ 2016-01-08 14:20 Champion-水龙果 阅读(1188) 评论(0) 推荐(0) 编辑
摘要:<script type="text/javascript"> var commonURL = 'http://www.xxx.com/'; function mobile_device_detect(url){ var thisOS=navigator.platform; var os=new A 阅读全文
posted @ 2016-01-08 14:16 Champion-水龙果 阅读(242) 评论(0) 推荐(0) 编辑
摘要:<script type="text/javascript"> //平台、设备和操作系统 var system ={ win : false, mac : false, xll : false }; //检测平台 var p = navigator.platform; alert(p); /**va 阅读全文
posted @ 2016-01-08 14:12 Champion-水龙果 阅读(638) 评论(0) 推荐(0) 编辑
摘要:function browserRedirect() { var sUserAgent = navigator.userAgent.toLowerCase(); var bIsIpad = sUserAgent.match(/ipad/i) == "ipad"; var bIsIphoneOs... 阅读全文
posted @ 2016-01-08 14:09 Champion-水龙果 阅读(2295) 评论(0) 推荐(0) 编辑
摘要:<?php function isMobile(){ $useragent=isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ''; $useragent_commentsblock=preg_match('|\(. 阅读全文
posted @ 2016-01-08 14:07 Champion-水龙果 阅读(673) 评论(0) 推荐(0) 编辑
摘要:ApiStoreIP地址查询:IP地址: 手机号码归属地:手机号码:身份证查询:身份证号码:股票查询:股票代码:城市查询:省名/城市名:天气预报:城市名:....... demo下载:files.cnblogs.com/files/qhorse/ApiStore.rar 阅读全文
posted @ 2016-01-06 15:30 Champion-水龙果 阅读(361) 评论(0) 推荐(0) 编辑
摘要:/* 兼容问题*/@media screen and (device-width: 320px) and (device-height: 480px) and (-webkit-device-pixel-ratio: 2){ .dialog-agreement-con{ height: 4... 阅读全文
posted @ 2016-01-06 10:08 Champion-水龙果 阅读(383) 评论(0) 推荐(0) 编辑
摘要:index.php <?php include_once 'simple_html_dom.php'; //获取html数据转化为对象 $html = file_get_html('http://paopaotv.com/tv-type-id-5-pg-1.html'); //A-Z的字母列表每条数 阅读全文
posted @ 2016-01-05 11:01 Champion-水龙果 阅读(275) 评论(0) 推荐(0) 编辑

Champion-水龙果