上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: 拍照 开始录像 结束录像 预览 onLoad() { this.ctx = wx.createCameraContext() }, takePhoto() { this.ctx.takePhoto({ q... 阅读全文
posted @ 2018-07-26 10:11 冷空气的清晰 阅读(683) 评论(0) 推荐(0) 编辑
摘要: button:function(e){ wx.startRecord({ success: function (res) { voice = res.tempFilePath }, fail: function (res) { //录音失败 } }) }, stop:fu... 阅读全文
posted @ 2018-07-25 23:26 冷空气的清晰 阅读(1520) 评论(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 冷空气的清晰 阅读(123) 评论(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 冷空气的清晰 阅读(492) 评论(0) 推荐(0) 编辑
摘要: function excel_down(){ //导入谁就去查谁 $data=Db::name('order_xueyou')->select(); // 导出Exl // import("./PHPExcel"); // import("./PHPExcel/Workshe... 阅读全文
posted @ 2018-07-21 10:45 冷空气的清晰 阅读(2157) 评论(0) 推荐(0) 编辑
摘要: $fromurl="//www.ctl.net/"; //跳转往这个地址。 if( $_SERVER['HTTP_REFERER'] == "" ) { header("Location:".$fromurl); exit; } 阅读全文
posted @ 2018-07-20 09:43 冷空气的清晰 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-07-19 15:32 冷空气的清晰 阅读(198) 评论(0) 推荐(0) 编辑
摘要: /** * 计算两点地理坐标之间的距离 * @param Decimal $longitude1 起点经度 * @param Decimal $latitude1 起点纬度 * @param Decimal $longitude2 终点经度 * @param Decimal $latitude2 终点纬度 * @param Int $... 阅读全文
posted @ 2018-07-17 13:55 冷空气的清晰 阅读(471) 评论(0) 推荐(0) 编辑
摘要: uploadImage : function (){ wx.chooseImage({ count: 9, // 默认9 sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有 sourceType: ['album', 'camer 阅读全文
posted @ 2018-07-10 12:09 冷空气的清晰 阅读(184) 评论(0) 推荐(0) 编辑
摘要: php 移动或重命名文件(图片)到另一目录下的方法有多种,这里只列出三种: php 移动或重命名文件(图片)到另一目录下的方法有多种,这里只列出三种: 方法一:使用copy函数 方法一:使用copy函数 格式:copy(source,destination) 格式:copy(source,desti 阅读全文
posted @ 2018-07-02 11:12 冷空气的清晰 阅读(120) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 下一页