2018年8月22日

Js + echarts 仪表图

摘要: var drawGaugeChart=function(chartId,maxValue,unit,curValue,target){ var target=0.5 var option={ tooltip : { formatter:function(data){ return "业务指标<br> 阅读全文

posted @ 2018-08-22 22:55 KellyChen_hug&hope 阅读(766) 评论(0) 推荐(0) 编辑

Js + echarts 漏斗图

摘要: var drawFunnelChart=function(chartId,titleText, dataArr,nameArr,gapArr,minValue){ var option = { title: { text: titleText, subtext: '' }, tooltip: { t 阅读全文

posted @ 2018-08-22 22:54 KellyChen_hug&hope 阅读(1978) 评论(0) 推荐(0) 编辑

Js + Tab + Bootstrap Table 防止多个table叠加

摘要: //为了防止多个table叠加,事先销毁$("#" + destroyTableId).bootstrapTable('destroy'); 阅读全文

posted @ 2018-08-22 22:51 KellyChen_hug&hope 阅读(724) 评论(0) 推荐(0) 编辑

Js 获取html的值

摘要: 获取html的值,用innerHTMLdocument.getElementById(id + ' span').innerHTML 阅读全文

posted @ 2018-08-22 22:48 KellyChen_hug&hope 阅读(290) 评论(0) 推荐(0) 编辑

2018年8月19日

CSS

摘要: 布局方式有下面几种了: 行内布局 块级布局 BFC 浮动布局 定位布局 表布局 Flexbox布局 Grid布局 这几种布局里面常用但难搞的要数:行内布局、浮动、BFC几个了,Flexbox常用但是不难搞,Grid只有在新的浏览器支持,每种布局模型的规则都不一样,这些都需要我们去记忆。 Grid布局 阅读全文

posted @ 2018-08-19 22:52 KellyChen_hug&hope 阅读(110) 评论(0) 推荐(0) 编辑

2018年8月13日

Scala 数据转换

摘要: (a/b*1.0).formatted("%.2f")*1.0: 转化为doubleformatted("%.2f"):保证两位小数 阅读全文

posted @ 2018-08-13 21:18 KellyChen_hug&hope 阅读(222) 评论(0) 推荐(0) 编辑

2018年8月6日

Js + Bootstrap Table + adminlte - 自定义formatter,在表格内添加箭头样式,调整列宽

摘要: var drawDataTable=function(chartId){ var dataList = [ { "criteria": "q>100", "count": "400 up", "cRatio": "10% up", "pRatio": "60% up" }, { "criteria" 阅读全文

posted @ 2018-08-06 22:53 KellyChen_hug&hope 阅读(1503) 评论(0) 推荐(0) 编辑

Js + echarts - Pie legend 位置调整和值添加

摘要: var drawPieChart=function(chartId,titleText){ var chartData=[ {value:335, name:'原因1',trend:'up'}, {value:310, name:'原因2',trend:'up'}, {value:234, name 阅读全文

posted @ 2018-08-06 22:47 KellyChen_hug&hope 阅读(2448) 评论(0) 推荐(0) 编辑

Js + Bootstrap - 切换tab

摘要: a[data-toggle=tab: 选择a标签里,data-toggle属性为tab shown.bs.tab: 该事件在标签页显示时触发,但是必须在某个标签页已经显示之后。分别使用 event.target 和 event.relatedTarget 来定位到激活的标签页和前一个激活的标签页。 阅读全文

posted @ 2018-08-06 22:37 KellyChen_hug&hope 阅读(346) 评论(0) 推荐(0) 编辑

2018年5月19日

vue.js note

摘要: 1. vue-cli文件执行顺序 index.html -> main.js -> App.vue(根组件,用来融合各个子vue,子vue自带style&script) 2. 子vue和app.vue的调用关系 子vue通过export default来展现接口 app.vue 通过import来使 阅读全文

posted @ 2018-05-19 22:33 KellyChen_hug&hope 阅读(287) 评论(0) 推荐(0) 编辑

导航