摘要: es6转es5 在线转换工具 "Babeljs" "es6console" 阅读全文
posted @ 2019-03-20 17:00 joexin 阅读(16902) 评论(0) 推荐(2) 编辑
摘要: 1、背景 由于在开发的过程中,我们经常需要访问测试/正式环境,会出现线上正常,本地访问不同 2、方案 方法一: 我们可以通过node作为中间件,解决这一问题。示例如下: ``` var express = require('express'); const { createProxyMiddlewa 阅读全文
posted @ 2023-05-22 22:16 joexin 阅读(61) 评论(0) 推荐(0) 编辑
摘要: react reactrouter 阅读全文
posted @ 2022-01-17 09:34 joexin 阅读(25) 评论(0) 推荐(0) 编辑
摘要: React react-router-dom 6.0路由使用 由于react路由版本的更新迭代,记录路由知识点 新react-router-dom地址,点击查看详情。 下面为使用的例子 Install npm install react-router-dom@6 history@5 yarn add 阅读全文
posted @ 2021-11-10 09:46 joexin 阅读(7744) 评论(0) 推荐(0) 编辑
摘要: React 列表进入详情页面 首先安装 react router dom (4.0) npm/yarn install react router dom 路由跳转配置 列表 父组件 this.props.history.push( { pathname:'/detail', state: data 阅读全文
posted @ 2019-03-20 21:08 joexin 阅读(2035) 评论(0) 推荐(0) 编辑