01 2016 档案
摘要:function getDir($dir) { $dirArray[] = NULL; if (false != ($handle = opendir( $dir ))) { $i=0; while ( false !== ($file = readdir( $handle )) ) { //去掉"
阅读全文
摘要:下载地址:files.cnblogs.com/files/qhorse/支持图片上传预览的uploadPreview.js插件.rar
阅读全文
摘要:js <script language="javascript"> function randomString(len) { len = len || 32; var $chars = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678'; /****
阅读全文
摘要:/** * 导出数据为excel表格 *@param $data 一个二维数组,结构如同从数据库查出来的数组 *@param $title excel的第一行标题,一个数组,如果为空则没有标题 *@param $filename 下载的文件名 *@examlpe $stu = M ('User');
阅读全文
摘要:<?php function check_wap() { if (isset($_SERVER['HTTP_VIA'])) return true; if (isset($_SERVER['HTTP_X_NOKIA_CONNECTION_MODE'])) return true; if (isset
阅读全文
摘要:<script type="text/javascript"> var commonURL = 'http://www.xxx.com/'; function mobile_device_detect(url){ var thisOS=navigator.platform; var os=new A
阅读全文
摘要:<script type="text/javascript"> //平台、设备和操作系统 var system ={ win : false, mac : false, xll : false }; //检测平台 var p = navigator.platform; alert(p); /**va
阅读全文
摘要:function browserRedirect() { var sUserAgent = navigator.userAgent.toLowerCase(); var bIsIpad = sUserAgent.match(/ipad/i) == "ipad"; var bIsIphoneOs...
阅读全文
摘要:<?php function isMobile(){ $useragent=isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ''; $useragent_commentsblock=preg_match('|\(.
阅读全文
摘要:ApiStoreIP地址查询:IP地址: 手机号码归属地:手机号码:身份证查询:身份证号码:股票查询:股票代码:城市查询:省名/城市名:天气预报:城市名:....... demo下载:files.cnblogs.com/files/qhorse/ApiStore.rar
阅读全文
摘要:/* 兼容问题*/@media screen and (device-width: 320px) and (device-height: 480px) and (-webkit-device-pixel-ratio: 2){ .dialog-agreement-con{ height: 4...
阅读全文
摘要: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的字母列表每条数
阅读全文