上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: 发送弹幕 function getRandomColor() { let rgb = [] for (let i = 0; i < 3; ++i) { let color = Math.floor(Math.random() * 256).toString(16) color = color.length == 1 ? '0' ... 阅读全文
posted @ 2018-07-26 10:30 冷空气的清晰 阅读(828) 评论(0) 推荐(0)
摘要: 拍照 开始录像 结束录像 预览 onLoad() { this.ctx = wx.createCameraContext() }, takePhoto() { this.ctx.takePhoto({ q... 阅读全文
posted @ 2018-07-26 10:11 冷空气的清晰 阅读(719) 评论(0) 推荐(0)
摘要: button:function(e){ wx.startRecord({ success: function (res) { voice = res.tempFilePath }, fail: function (res) { //录音失败 } }) }, stop:fu... 阅读全文
posted @ 2018-07-25 23:26 冷空气的清晰 阅读(1547) 评论(0) 推荐(0)
摘要: public function get_forever_media(){ $access_token = $this->getAccessToken(); $url = 'https://api.weixin.qq.com/cgi-bin/media/uploadimg?access_token='.$access_token; $filepath... 阅读全文
posted @ 2018-07-23 11:16 冷空气的清晰 阅读(140) 评论(0) 推荐(0)
摘要: $arr = ['12','12','23']; $arr = $arr; $arr1=$arr; rsort($arr1); $c=[]; foreach ( $arr as $k=>$v){ $b= array_search($v, $arr1); $c[$k]=$b+1;... 阅读全文
posted @ 2018-07-21 15:53 冷空气的清晰 阅读(517) 评论(0) 推荐(0)
摘要: function excel_down(){ //导入谁就去查谁 $data=Db::name('order_xueyou')->select(); // 导出Exl // import("./PHPExcel"); // import("./PHPExcel/Workshe... 阅读全文
posted @ 2018-07-21 10:45 冷空气的清晰 阅读(2192) 评论(0) 推荐(0)
摘要: $fromurl="//www.ctl.net/"; //跳转往这个地址。 if( $_SERVER['HTTP_REFERER'] == "" ) { header("Location:".$fromurl); exit; } 阅读全文
posted @ 2018-07-20 09:43 冷空气的清晰 阅读(145) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-07-19 15:32 冷空气的清晰 阅读(220) 评论(0) 推荐(0)
摘要: /** * 计算两点地理坐标之间的距离 * @param Decimal $longitude1 起点经度 * @param Decimal $latitude1 起点纬度 * @param Decimal $longitude2 终点经度 * @param Decimal $latitude2 终点纬度 * @param Int $... 阅读全文
posted @ 2018-07-17 13:55 冷空气的清晰 阅读(519) 评论(0) 推荐(0)
摘要: uploadImage : function (){ wx.chooseImage({ count: 9, // 默认9 sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有 sourceType: ['album', 'camer 阅读全文
posted @ 2018-07-10 12:09 冷空气的清晰 阅读(206) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 下一页