- 博客(6)
- 资源 (39)
- 收藏
- 关注
原创 按需加载JS和css
/*** js和css按需加载 ***/ function loadJsCss(url, callback ){// 非阻塞的加载 后面的js会先执行 var isJs = /\/.+\.js($|\?)/i.test(url) ? true : false; function onloaded(script, callback){//绑定加载完的回调函数 if(script.re
2016-05-31 14:42:53 2565
原创 php 微信模拟登陆给用户发送消息(文字,图片,图文)
<?php /* 原作者:https://github.com/itziy/wechat 修改:Server getUserFakeid函数 获取fakeid的正则匹配公式 调用方式简单说明: $arr = array( 'account' => '公众平台帐号', 'password' => '密码' ); $w = new Weixin($arr); $w->getAllUserInf
2016-05-30 16:05:36 5447
转载 php 批量下载图片的一个小程序
<?php $url = "http://photo.hupu.com/nba"; $content=file_get_contents($url); $reg="//"; preg_match_all($reg,$content,$matches); $path = './imgDownload'; if(!file_exists($path)){ mkdir($path, 0777);
2016-05-19 11:51:17 2609
原创 地图坐标转换
//GCJ-02(火星,高德) 坐标转换成 BD-09(百度) 坐标 //@param bd_lon 百度经度 //@param bd_lat 百度纬度 function bd_encrypt($gg_lon,$gg_lat) { $x_pi = 3.14159265358979324 * 3000.0 / 180.0; $x =
2016-05-12 10:09:16 1354
原创 js 获取url参数
UrlParm = function() { // url参数 var data, index; (function init() { data = []; index = {}; var u = window.lo
2016-05-11 14:26:40 1129
原创 手机端兼容代码js
if(/Android (\d+\.\d+)/.test(navigator.userAgent)){ var version = parseFloat(RegExp.$1); if(version>2.3){ var phoneScale = parseInt(window.screen.width)/640; document.write
2016-05-03 14:09:15 2858
JSONLibraries1.zip
2013-05-13
spring-framework & commons-logging
2013-12-07
jquery.validate.js
2013-12-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人