摘要:
录音功能各个版本 https://github.com/xiangyuecn/Recorder 以下是H5端 在打开录音的时候添加判断录音音量 var voiceMinCount = 0;var voiceMaxCount = 0; var recOpen=function(){//一般在显示出录音 阅读全文
摘要:
如果你的项目文件夹里面的内容同时存在index.js index.vue(类似),那么路由配置路径的时候一定要带上.vue 如果单纯的写Index,会找到.js文件,导致页面不显示 阅读全文
摘要:
1,模板部分 <view class="bottom-input" :style="{bottom:`${KeyboardHeight}rpx`}"> <view class="input-squire"> <u--textarea placeholder="请输入内容~" border="none 阅读全文
摘要:
1,上传功能 <el-upload action="" ref='upload' :http-request="handleFileUpload" :limit="1" :show-file-list="false" > <i class="el-icon-upload2"></i> </el-up 阅读全文
摘要:
const { execFile } = require('child_process'); import axios from 'axios'; var FormData = require('form-data'); //截屏搜索 wxdllScreen(win){ // 编写你的代码 var 阅读全文
摘要:
把红框中的注释的那行,注释或者删除都可 阅读全文
摘要:
1,找到在 C:\Users\你的文件夹\AppData\Local\Atlassian\SourceTree 文件夹找到 passwd 和 userhosts 两个文件夹 2,删除passwd中的密码。删除userhosts中的账号 3,重新打开sourcetree,拉取代码或者推送代码时会让重新 阅读全文
摘要:
1,先定义一个日期工具类,或者写在其他的方法中都行。定义工具类可重复使用 1 export function getDateRang(val) { 2 const now = new Date(); // 当前日期 3 const nowDayOfWeek = now.getDay(); // 今天 阅读全文
摘要:
1,引入 import VXETable from 'vxe-table' 2, 1 //上传图片 2 async uploadImg (row) { 3 try { 4 const { file } = await VXETable.readFile({ 5 types: ['png', 'jpg 阅读全文
摘要:
接受到的文件流是这样的 1,首先在请求时加上 responseType:'blob' request({ url: "url", method: "get", responseType:'blob', //加上这一行 params:params }) 2,在获取到返回来的文件流后进行处理 //传的参 阅读全文