![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
react
菜鸟的备忘录
相当于备忘录
展开
-
react写城市(省市区)联动
在components中引入联动的json文件import ProvinceData from '../../../../../json/area.json';在this.state中定义相应变量 constructor(props){ super(props); this.state = { active: 'male',原创 2017-09-30 09:53:20 · 5079 阅读 · 5 评论 -
IE9报错:DOM7011: 此页上的代码禁用了反向和正向缓存,需特殊处理跳转
if(navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion .split(";")[1].replace(/[ ]/g,"")=="MSIE9.0"){ xxxxxxx}else{ this.props.history.push(window.AppConf.rout原创 2017-12-06 15:15:19 · 37354 阅读 · 3 评论 -
WebUploader文件上传(react),带参数
1,导入uploader.swf;webuploader.css;webuploader.nolog.min.js 2,在生命周期中写入 componentDidMount(){ var _this=this; var $picture =$(".banner-pic"); this._uploader = WebUploader.create原创 2017-12-06 15:36:53 · 4744 阅读 · 5 评论