摘要: 在vue.config.js里面配置host属性为0.0.0.0,如下 0.0.0.0和127.0.0.1其实一样,都代表的是本机. window系统,win+R输入 drivers ,etc文件打开host。 这样就可以直接在地址栏输入custom-wedding-test.cn:8080(注意这 阅读全文
posted @ 2021-03-29 13:42 飞向火星 阅读(4747) 评论(0) 推荐(0) 编辑
摘要: 传参代码如下, 请求头content-type: application/x-www-form-urlencoded。 export function orderSubmit(data) { return request.post(config.router + '/v1/order/unified 阅读全文
posted @ 2021-03-26 11:10 飞向火星 阅读(376) 评论(0) 推荐(0) 编辑
摘要: https://github.com/gaohan1994/react-vw-layout 阅读全文
posted @ 2021-03-12 11:54 飞向火星 阅读(27) 评论(0) 推荐(0) 编辑
摘要: body,dl,dd,ul,ol,h1,h2,h3,h4,h5,h6,pre,form,input,textarea,p,hr,thead,tbody,tfoot,th,td{margin:0;padding:0;} ul,ol{list-style:none;} html{-ms-text-siz 阅读全文
posted @ 2021-03-12 11:20 飞向火星 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 今天第一次学习react-redux,才搞了十几分钟,就碰到报错 原代码 import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import Test2 from './test2'; i 阅读全文
posted @ 2021-03-11 11:20 飞向火星 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 1. antdPro项目与后台调接口报如下错误 查阅资料发现与 fetch里的 credentials(凭证)属性有关 fetch控制Credentials的选项有三个: 请求时携带凭证:credentials: 'include'仅在同源时请求时携带凭证:credentials: 'same-or 阅读全文
posted @ 2021-03-02 17:36 飞向火星 阅读(649) 评论(0) 推荐(0) 编辑
摘要: addEventListener函数的第三个参数,其实是个对象.对象的属性有三种,分别是capture,once,passive capture是,所监听事件,是否会在捕获阶段执行(触发),为true就会触发.默认为false(监听函数只在冒泡阶段被触发).once,表示listener在添加之后最 阅读全文
posted @ 2021-02-25 14:26 飞向火星 阅读(958) 评论(0) 推荐(0) 编辑