摘要: HTML: JS: 阅读全文
posted @ 2017-07-20 22:12 Damon.Wu 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 百度地图 阅读全文
posted @ 2017-07-19 15:11 Damon.Wu 阅读(2173) 评论(1) 推荐(1) 编辑
摘要: Ajax获取某个连接对应的内容 web URL: 请求的可以是某个.HTML页面, 或 .CSS文件, 或 .JS文件, 或.TXT 文件等文件 HTML 内容 阅读全文
posted @ 2017-07-14 09:16 Damon.Wu 阅读(395) 评论(0) 推荐(0) 编辑
摘要: js 版base 64 算法 base64.js 在js中的解析例子: 加密 输出 解密 输出 阅读全文
posted @ 2017-07-13 11:22 Damon.Wu 阅读(1002) 评论(0) 推荐(0) 编辑
摘要: //十进制转其他 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 阅读(24298) 评论(0) 推荐(0) 编辑
摘要: /** * 毫秒转换友好的显示格式 * 输出格式: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 阅读(1825) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(4069) 评论(2) 推荐(0) 编辑
摘要: WeUI-Uploader 上传 图片上传 0/6 ... 阅读全文
posted @ 2016-12-20 14:51 Damon.Wu 阅读(7910) 评论(3) 推荐(0) 编辑
摘要: 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 阅读(568) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(6647) 评论(1) 推荐(0) 编辑