摘要:
HTML: JS: 阅读全文
摘要:
Ajax获取某个连接对应的内容 web URL: 请求的可以是某个.HTML页面, 或 .CSS文件, 或 .JS文件, 或.TXT 文件等文件 HTML 内容 阅读全文
摘要:
js 版base 64 算法 base64.js 在js中的解析例子: 加密 输出 解密 输出 阅读全文
摘要:
//十进制转其他 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(... 阅读全文
摘要:
/** * 毫秒转换友好的显示格式 * 输出格式:21小时28分钟15秒 * @param {[type]} time [description] * @return {[type]} [description] */ function timeToDate(time) { // 获取当前时间戳 var currentTime = parseInt(new... 阅读全文
摘要:
array( 'value' => '有一名客户进行了一次预约!', 'color' => '#FF0000' ), 'keyword1' => array( 'value' => '2015/10/5 14:00~14:45', 'color' => '#FF0000' ), 'keyword2'... 阅读全文
摘要:
WeUI-Uploader 上传 图片上传 0/6 ... 阅读全文
摘要:
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... 阅读全文
摘要:
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', ... 阅读全文