摘要:
1.react处理跨域,在package中配置代理,用来解决跨域的问题 "proxy": "http://www.qiaoming.online", 2.vue解决跨域,在vue项目根目录下找到vue.config.js文件(如果没有该文件则自己创建),在proxy中设置跨域 devServer: 阅读全文
摘要:
一、axios简介 axios是一个基于promise的类库,可以用在浏览器和node.js中 二、axios请求拦截器、响应拦截器的基本用法 //请求拦截器 axios.interceptors.request.use( function (config) { // 在发送请求之前做些什么 ret 阅读全文
摘要:
getRequest(){ fetch("http://127.0.0.1:8888/getReq?naem=张三",{method:"get"}).then(res=>{ //fech第一个then方法里的参数并不是直接返回的数据,需要对该对象做序列化处理(json),再第一个then里才能拿到数 阅读全文
摘要:
1.React状态管理思想,redux http://cn.redux.js.org/ 2.React ui插件AntDesign https://ant.design/index-cn 3.react项目开发必备插件 npm install react-router-dom fetch-jsonp 阅读全文
摘要:
vue3.0官网 https://vue3.chengpeiquan.com/update.html 阅读全文
摘要:
uviewui.官网: https://www.uviewui.com/components/intro.html 阅读全文
摘要:
一、项目中对数组的操作 1.数组去重通过Set数组去重 let arr = [4, 1, 3, 3, 2, '2']; let uniqueArr = [...new Set(arr)]; console.log(uniqueArr); // [4, 1, 3, 2, "2"] 2.数组排序 方法一 阅读全文
摘要:
https://weapp.iviewui.com/components/layout 阅读全文
摘要:
https://juejin.cn/post/6844903845617729549 https://juejin.cn/post/6844903857454055438 阅读全文