会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Damon
首页
新随笔
订阅
管理
2017年7月20日
js 图片压缩 转成base64
摘要: HTML: JS:
阅读全文
posted @ 2017-07-20 22:12 Damon.Wu
阅读(365)
评论(0)
推荐(0)
2017年7月19日
百度地图Api定位当前的位置
摘要: 百度地图
阅读全文
posted @ 2017-07-19 15:11 Damon.Wu
阅读(2179)
评论(1)
推荐(1)
2017年7月14日
Ajax获取某个连接对应的内容
摘要: Ajax获取某个连接对应的内容 web URL: 请求的可以是某个.HTML页面, 或 .CSS文件, 或 .JS文件, 或.TXT 文件等文件 HTML 内容
阅读全文
posted @ 2017-07-14 09:16 Damon.Wu
阅读(399)
评论(0)
推荐(0)
2017年7月13日
JavaScript Base64算法的实现
摘要: js 版base 64 算法 base64.js 在js中的解析例子: 加密 输出 解密 输出
阅读全文
posted @ 2017-07-13 11:22 Damon.Wu
阅读(1012)
评论(0)
推荐(0)
2017年6月30日
javascript 进制转换(2进制、8进制、10进制、16进制之间的转换)
摘要: //十进制转其他 var x=110; alert(x); alert(x.toString(8)); alert(x.toString(32)); alert(x.toString(16)); //其他转十进制 var x='110'; alert(parseInt(x,2)); alert(parseInt(x,8)); alert(parseInt(...
阅读全文
posted @ 2017-06-30 15:32 Damon.Wu
阅读(24315)
评论(0)
推荐(0)
2017年4月27日
js 显示友好的时间格式【刚刚、几秒前,几小时,几天前(3天内) 时间格式化】
摘要: /** * 毫秒转换友好的显示格式 * 输出格式:21小时28分钟15秒 * @param {[type]} time [description] * @return {[type]} [description] */ function timeToDate(time) { // 获取当前时间戳 var currentTime = parseInt(new...
阅读全文
posted @ 2017-04-27 14:08 Damon.Wu
阅读(1846)
评论(0)
推荐(0)
2016年12月24日
微信公众平台模板消息范例 PHP
摘要: array( 'value' => '有一名客户进行了一次预约!', 'color' => '#FF0000' ), 'keyword1' => array( 'value' => '2015/10/5 14:00~14:45', 'color' => '#FF0000' ), 'keyword2'...
阅读全文
posted @ 2016-12-24 17:18 Damon.Wu
阅读(4088)
评论(2)
推荐(0)
2016年12月20日
weui upLoader
摘要: WeUI-Uploader 上传 图片上传 0/6 ...
阅读全文
posted @ 2016-12-20 14:51 Damon.Wu
阅读(7960)
评论(3)
推荐(0)
2016年12月19日
PHP保存base64
摘要: base64图片格式:$base64_url = data:image/jpeg;base64,xxxxxxxxxxxxxxxxxxxxxx 1,去除头部:$base64_body = substr(strstr($base64_url,','),1); 2,解码:$data= base64_decode($base64_body ); 3,存储or创建图片: file_put_cont...
阅读全文
posted @ 2016-12-19 15:30 Damon.Wu
阅读(595)
评论(0)
推荐(0)
2016年10月10日
PHP提取字符串中的数字
摘要: function number($str) { return preg_replace('/\D/s', '', $str); } // echo 123456 echo number('Hello 123 world 456 !!'); //支持小数 function number($str) { return preg_replace('/[^\.0123456789]/s', ...
阅读全文
posted @ 2016-10-10 11:38 Damon.Wu
阅读(6657)
评论(1)
推荐(0)
下一页
公告
点击右上角即可分享