上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页
摘要: cancelEditImage = (imageUrl) => { const {actions: {ownActions: {editMaterial}}, materials} = this.props; const item = find(materials, {coverImage: ima 阅读全文
posted @ 2017-03-21 17:33 辣牛 阅读(115) 评论(0) 推荐(0) 编辑
摘要: import ReactHighcharts from'react-highcharts'; class SummaryLeft extends Component { render () {var config = { chart: { plotBackgroundColor: null, plotBorderWidth: null, ... 阅读全文
posted @ 2017-03-20 10:11 辣牛 阅读(1105) 评论(0) 推荐(0) 编辑
摘要: 它是一个轻量级的jquery插件。 需要引入的文件: css: #box { position: absolute; overflow: hidden; height: 200px; width: 200px; } js: componentDidMount() { $('#box').perfec 阅读全文
posted @ 2017-03-17 14:40 辣牛 阅读(6263) 评论(0) 推荐(0) 编辑
摘要: 引入方法: span { background: url('1.svg') no-repeat; background-size: 20px 20px; background-position: 0 0; } <span></span> 修改颜色方法: 以text文本格式打开svg文件,修改path 阅读全文
posted @ 2017-03-17 13:44 辣牛 阅读(2835) 评论(1) 推荐(1) 编辑
摘要: fetch('url'+参数a, { method: "GET", body: json } .then(res => response.json()) .then(console.log(json)) ) 一个发送post请求的示例: 项目: export default class View e 阅读全文
posted @ 2017-03-16 17:20 辣牛 阅读(850) 评论(0) 推荐(0) 编辑
摘要: 项目主目录下总是会出现这个文件,而且不止一个,原因是npm i 的时候,如果报错,就会增加一个此文件来显示报错信息,npm install的时候则不会出现。 阅读全文
posted @ 2017-03-16 10:09 辣牛 阅读(6211) 评论(0) 推荐(0) 编辑
摘要: <p> 哈哈,我是一个段落哦! <div id="box">我是一个萌萌的div</div> </p> 这样写的后果: 注意: p标签里面不要放块级元素,最好只放文本。 阅读全文
posted @ 2017-03-15 11:41 辣牛 阅读(372) 评论(0) 推荐(0) 编辑
摘要: git配置文件位置: 当前用户目录下的隐藏文件.gitconfig 找不到原因:没有配置name 解决办法: git config --global user.name 'your name' git config --global user.email 'your email' 设置命令简写:配置 阅读全文
posted @ 2017-03-15 11:37 辣牛 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 使用npm安装一些包失败,类似如下报错情况: 方法一:使用cnpm,用淘宝 NPM 镜像 安装 上面这种镜像使用方式将配置写死,下次用的时候配置还在。附:搜索镜像: http://cnpmjs.org 安装模块 | $ cnpm install [name]从 registry.npm.taobao 阅读全文
posted @ 2017-03-13 17:56 辣牛 阅读(9748) 评论(1) 推荐(1) 编辑
摘要: 学习中。。。 阅读全文
posted @ 2017-02-22 14:09 辣牛 阅读(148) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页