
react
Sail_Again
再次起航
展开
-
在windows开发react-native android应用程序出现的错误
在windows开发react-native android应用程序出现的错误将react-native所需要的开发环境装好后,执行react-native run-android没有出错,但安装到真机上时出现could not get batchedBridge, make sure your bundle is packaged correctly 错误,网上搜了一下,找到一个解决方法:原创 2016-10-30 19:55:35 · 293 阅读 · 0 评论 -
.gitignore的配置
每个Git项目一般都需要一个“.gitignore”文件,这个文件的作用就是告诉Git哪些文件不需要添加到版本库中。语法:以斜杠“/”开头表示目录; 以星号“*”通配多个字符; 以问号“?”通配单个字符以方括号“[]”包含单个字符的匹配列表;以叹号“!”表示不忽略(跟踪)匹配到的文件或目录;示例:node_modules/* 忽略目录 node_modules下的全部内容;注意原创 2017-05-18 17:35:53 · 456 阅读 · 0 评论 -
react项目错误集
报错信息Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted. 原因: 绑定的元素的高度高于父级,保证父元素不要出现height为0....原创 2018-06-15 15:22:12 · 245 阅读 · 0 评论 -
react事件处理
运行以下click处理函数提示报错: Uncaught TypeError: Cannot read property ‘state’ of nullclass Test extends React.Component { constructor(props) { super(props); this.state = { name: 'gt test' }; } ...原创 2018-07-06 14:26:29 · 235 阅读 · 0 评论 -
react中使用GET或POST方法下载文件
GET方法window.location.href = `${serviceUrl()}/um-mall-service/orders/export`;若需要带参数,直接在url后面拼接参数。POST方法onUploadData(params) { const formElement = document.createElement('form'); formElemen...原创 2019-03-08 09:52:35 · 5982 阅读 · 1 评论