03 2017 档案

摘要:最终引入 注意: 1、引入美图秀秀必须加载上传图片接口 2、设置crossdomain.xml 下载crossdomain.xml文件,把解压出来的crossdomain.xml文件放在您保存图片或图片来源的服务器根目录下,比如: http://example.com.cn,那么crossdomai 阅读全文
posted @ 2017-03-22 12:01 辣牛 阅读(942) 评论(0) 推荐(0)
摘要:cancelEditImage = (imageUrl) => { const {actions: {ownActions: {editMaterial}}, materials} = this.props; const item = find(materials, {coverImage: ima 阅读全文
posted @ 2017-03-21 17:33 辣牛 阅读(122) 评论(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 辣牛 阅读(1120) 评论(0) 推荐(0)
摘要:它是一个轻量级的jquery插件。 需要引入的文件: css: #box { position: absolute; overflow: hidden; height: 200px; width: 200px; } js: componentDidMount() { $('#box').perfec 阅读全文
posted @ 2017-03-17 14:40 辣牛 阅读(6298) 评论(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 辣牛 阅读(2866) 评论(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 辣牛 阅读(867) 评论(0) 推荐(0)
摘要:项目主目录下总是会出现这个文件,而且不止一个,原因是npm i 的时候,如果报错,就会增加一个此文件来显示报错信息,npm install的时候则不会出现。 阅读全文
posted @ 2017-03-16 10:09 辣牛 阅读(6295) 评论(0) 推荐(0)
摘要:<p> 哈哈,我是一个段落哦! <div id="box">我是一个萌萌的div</div> </p> 这样写的后果: 注意: p标签里面不要放块级元素,最好只放文本。 阅读全文
posted @ 2017-03-15 11:41 辣牛 阅读(378) 评论(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 辣牛 阅读(180) 评论(0) 推荐(0)
摘要:使用npm安装一些包失败,类似如下报错情况: 方法一:使用cnpm,用淘宝 NPM 镜像 安装 上面这种镜像使用方式将配置写死,下次用的时候配置还在。附:搜索镜像: http://cnpmjs.org 安装模块 | $ cnpm install [name]从 registry.npm.taobao 阅读全文
posted @ 2017-03-13 17:56 辣牛 阅读(9812) 评论(1) 推荐(1)