摘要: 传参代码如下, 请求头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 飞向火星 阅读(373) 评论(0) 推荐(0) 编辑
摘要: https://github.com/gaohan1994/react-vw-layout 阅读全文
posted @ 2021-03-12 11:54 飞向火星 阅读(25) 评论(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 飞向火星 阅读(204) 评论(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 飞向火星 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 1. antdPro项目与后台调接口报如下错误 查阅资料发现与 fetch里的 credentials(凭证)属性有关 fetch控制Credentials的选项有三个: 请求时携带凭证:credentials: 'include'仅在同源时请求时携带凭证:credentials: 'same-or 阅读全文
posted @ 2021-03-02 17:36 飞向火星 阅读(642) 评论(0) 推荐(0) 编辑
摘要: addEventListener函数的第三个参数,其实是个对象.对象的属性有三种,分别是capture,once,passive capture是,所监听事件,是否会在捕获阶段执行(触发),为true就会触发.默认为false(监听函数只在冒泡阶段被触发).once,a56爆大奖在线娱乐listener在添加之后最 阅读全文
posted @ 2021-02-25 14:26 飞向火星 阅读(940) 评论(0) 推荐(0) 编辑