摘要:
拍照 开始录像 结束录像 预览 onLoad() { this.ctx = wx.createCameraContext() }, takePhoto() { this.ctx.takePhoto({ q... 阅读全文
摘要:
button:function(e){ wx.startRecord({ success: function (res) { voice = res.tempFilePath }, fail: function (res) { //录音失败 } }) }, stop:fu... 阅读全文
摘要:
public function get_forever_media(){ $access_token = $this->getAccessToken(); $url = 'https://api.weixin.qq.com/cgi-bin/media/uploadimg?access_token='.$access_token; $filepath... 阅读全文
摘要:
$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;... 阅读全文
摘要:
function excel_down(){ //导入谁就去查谁 $data=Db::name('order_xueyou')->select(); // 导出Exl // import("./PHPExcel"); // import("./PHPExcel/Workshe... 阅读全文
摘要:
$fromurl="//www.ctl.net/"; //跳转往这个地址。 if( $_SERVER['HTTP_REFERER'] == "" ) { header("Location:".$fromurl); exit; } 阅读全文
摘要:
/** * 计算两点地理坐标之间的距离 * @param Decimal $longitude1 起点经度 * @param Decimal $latitude1 起点纬度 * @param Decimal $longitude2 终点经度 * @param Decimal $latitude2 终点纬度 * @param Int $... 阅读全文
摘要:
uploadImage : function (){ wx.chooseImage({ count: 9, // 默认9 sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有 sourceType: ['album', 'camer 阅读全文
摘要:
php 移动或重命名文件(图片)到另一目录下的方法有多种,这里只列出三种: php 移动或重命名文件(图片)到另一目录下的方法有多种,这里只列出三种: 方法一:使用copy函数 方法一:使用copy函数 格式:copy(source,destination) 格式:copy(source,desti 阅读全文