摘要: 最近做了个小活,碰到这么个问题,记录一下,因为度娘查不到,为了方便之后有人遇到这种问题去解决能百度的到,在此记录一下。 因为通过获取微信头像之后,直接调用wx.uploadFile会报错(uploadFile:fail createUploadTask:fail file not found),打断 阅读全文
posted @ 2020-08-20 09:34 就想来看看 阅读(465) 评论(0) 推荐(0) 编辑
摘要: export function null2str(data) { for (let x in data) { if (data[x] null) { // 如果是null 把直接内容转为 '' data[x] = ""; } else { if (Array.isArray(data[x])) { 阅读全文
posted @ 2022-08-17 15:19 就想来看看 阅读(29) 评论(0) 推荐(0) 编辑
摘要: text-transform: capitalize; 首字母大写text-transform: uppercase; 全部大写text-transform: lowercase; 全部小写 阅读全文
posted @ 2022-08-17 13:44 就想来看看 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 思路:1.路由后置守卫+this.$route.path 阅读全文
posted @ 2022-07-18 22:38 就想来看看 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 1.请求发出后未返回数据 //响应拦截Axios.interceptors.response.use(function (response) { if (!response) { MessageBox({ message: "网络不好", confirmButtonText: "刷新", }).th 阅读全文
posted @ 2022-07-18 22:35 就想来看看 阅读(51) 评论(0) 推荐(0) 编辑
摘要: vue.config.js文件中配置,给每次打包的文件名后面添加一个哈希值,以供浏览器区分 const timeStamp = new Date().getTime(); module.exports = { publicPath:"/", configureWebpack: { // webpac 阅读全文
posted @ 2022-07-18 22:27 就想来看看 阅读(478) 评论(0) 推荐(0) 编辑
摘要: import Vue from 'vue'import axios from 'axios'import store from '@/store'import { VueAxios } from './axios'import router from '@/router/index'import { 阅读全文
posted @ 2022-07-18 22:26 就想来看看 阅读(377) 评论(0) 推荐(0) 编辑
摘要: promise的作用 promise 是异步函数的解决方案,ajax是异步请求,多层嵌套会造成回调地狱,promise模拟同步,将异步回调类似于同步来处理业务逻辑。跨域:同源策略(协议、域名或者端口有一个不同就是跨域,Ajax请求会失败)->proxy配置反向代理解决 this.$nextTick( 阅读全文
posted @ 2022-02-15 16:59 就想来看看 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 按着这些视频路线走,你绝对能成为前端大神(干货满满) https://juejin.cn/post/6844904185163415560 阅读全文
posted @ 2021-12-30 09:29 就想来看看 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 1.demo:https://zhangxiang0316.github.io/vueUtils/#/form 2.git:https://github.com/zhangxiang0316/vueUtils 阅读全文
posted @ 2021-10-11 16:22 就想来看看 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 1.两个数组 arrA,arrB, 判断arrB中的prop如果与arrA中的prop重复,则此项arrB覆盖arrA let arrA = [{prop:1,name:'1',value:'aa'},{prop:2,name:'2',value:'bb'},{prop:3,name:'3',val 阅读全文
posted @ 2021-09-28 20:57 就想来看看 阅读(24) 评论(0) 推荐(0) 编辑