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