es6
chenxiang0708
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
个人对antd的axios封装
import axios from 'axios'; import qs from 'qs'; import {ant} from '../store'; const service = axios.create({ // baseURL:'/', //api的baseurl timeout:5000 //请求超时时间 }) function getTokenByL...原创 2019-12-25 17:30:18 · 1087 阅读 · 0 评论 -
promise的一些特点
promise基本概念 //resolve进入then,reject进入catch new Promise(function (resolve, reject) { resolve(123); }).then(function (res) { console.log(res)//123 }) new Promise(function (resolve, reject) { ...原创 2019-12-10 10:46:08 · 424 阅读 · 0 评论 -
react 快速获取input 值
getComment=({ target: { value } })=>{ console.log(value) this.props.callback(value); } render() { return ( <div className='Activity__container'> <input onCha...原创 2019-12-06 12:49:35 · 308 阅读 · 0 评论 -
promise和async中断或取消的办法
promise和async取消的办法:return 一个空的promise 直接return 一个false是没有效果的 async fn1() { await articleItems().then(res => {return false}) await articleItems().then(res => {console.log(3)}) console.log(4...原创 2019-03-22 22:35:23 · 6682 阅读 · 0 评论
分享