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 阅读(787) 评论(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 阅读(2046) 评论(0) 推荐(0)

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

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

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

Js 获取html的值

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

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

2018年8月19日

CSS

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

posted @ 2018-08-19 22:52 KellyChen_hug&hope 阅读(117) 评论(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 阅读(267) 评论(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 阅读(1543) 评论(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 阅读(2516) 评论(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 阅读(365) 评论(0) 推荐(0)

2018年5月19日

element-ui

摘要: 1 布局 & 导航栏及其属性 el-menu 初始值,样式,横竖,触发事件 阅读全文

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

导航