摘要:
1.不支持柱形图Geom色块拼接(本来考虑可以渐变,但是由于 1.柱图高度的不确定性 + 2.bizcharts的 渐变色不支持像素值,所以无法实现上方色块固定高度这样的效果, 但按固定高度比例的效果可以实现) 解决方法:思路 1. 自定义shape 2.利用堆叠柱状图来显示这个效果 3.使用geo 阅读全文
摘要:
webpack Compile: 将js编译成Bundle HMR Server: 将热更新的文件输出给 HMR Runtime Bundle Server: 提供文件在浏览器访问 HMR Runtime:会被注入到浏览器,更新文件变化 bundle.js : 构建输出的文件 资源内联 代码层面: 阅读全文
摘要:
``` // webpack.config.js 命令文件 // 配置文件 const path = require("path"); const { CleanWebpackPlugin } = require('clean webpack plugin'); //每次打包先清除dist目录 co 阅读全文
摘要:
CronTrigger配置格式: 格式: [秒] [分] [小时] [日] [月] [周] [年] 序号 说明 是否必填 允许填写的值 允许的通配符 1 秒 是 0 59 , / 2 分 是 0 59 , / 3 小时 是 0 23 , / 4 日 是 1 31 , ? / L W 5 月 是 1 阅读全文
摘要:
event.js (单例) app.js 阅读全文
摘要:
```import React, {Component} from 'react';import { PropTypes } from 'prop-types';class ListItem extends Component { static contextTypes = { color: PropTypes.string } render(){ const { valu... 阅读全文
摘要:
/ 判定数组中的内容是相同的 不含顺序 @param { } arr / export function isEqualArray(arr1,arr2 ){ if(!(arr1 instanceof Array) || !(arr2 instanceof Array) || arr1.length 阅读全文
摘要:
有个缺陷 就是放在react代码中会无法正确运行,这是因为这里的监听完成其实是通过 窗口之间的切换完成的,在react中,切换窗口会卸载组件。导致监听事件的回调函数中无法运行。 阅读全文