2020年7月8日

js Date对象

摘要: { // Date对象创建的四种方式 /* 首先有个前提:是以1970 年 1 月 1 日为0毫秒数 var d = new Date(); var d = new Date(milliseconds); 毫秒数 823243544357 var d = new Date(dateString); 阅读全文

posted @ 2020-07-08 17:56 章画 阅读(181) 评论(0) 推荐(0) 编辑

pie 饼图

摘要: 1最简单的饼图 // 定制饼图box4饼形图-年龄分布 (function () { const box4 = document.getElementById('box4') const mycharts = echarts.init(box4) const pieData = [ { value: 阅读全文

posted @ 2020-07-08 11:23 章画 阅读(257) 评论(0) 推荐(0) 编辑

2020年7月7日

2vscode user settings

摘要: { "editor.accessibilityPageSize": 14, "editor.fontSize": 14, "editor.fontLigatures": null, "workbench.colorTheme": "Dracula Soft", "window.zoomLevel": 阅读全文

posted @ 2020-07-07 22:57 章画 阅读(643) 评论(0) 推荐(0) 编辑

1vue snippets

摘要: { "Create vue template": { "prefix": "vue", "body": [ "<!-- -->", "<template>", " <div></div>", "</template>", "<script>", "export default {", " name: 阅读全文

posted @ 2020-07-07 22:19 章画 阅读(208) 评论(0) 推荐(0) 编辑

0vscode基本插件

摘要: Bracket Pair Colorizerauto-close-tagAuto Rename TagBracket Pair ColorizerDraculaESLint Code Spell Checkerfix-jsonLive ServerOpen in BrowserPath Autoco 阅读全文

posted @ 2020-07-07 22:15 章画 阅读(143) 评论(0) 推荐(0) 编辑

2020年7月6日

js 基础面试

摘要: 1.['1', '2', '3'].map(parseInt) let arr = ['1', '2', '3'] let res1 = arr.map(Number) // [ 1, 2, 3 ] 正确做法1 let res2 = arr.map(item => item * 1) //[ 1, 阅读全文

posted @ 2020-07-06 18:10 章画 阅读(116) 评论(0) 推荐(0) 编辑

2020年7月4日

map 地图组件

摘要: 地图选择器网址 http://datav.aliyun.com/tools/atlas/#&lat=31.769817845138945&lng=104.29901249999999&zoom=3 baseUrl: https://gallerybox.echartsjs.com 1.geo+ +波 阅读全文

posted @ 2020-07-04 18:48 章画 阅读(418) 评论(0) 推荐(0) 编辑

2020年7月3日

柱状图bar

摘要: 1.bar的基本设置宽度和圆角 let box1 = document.getElementById('box1') let myEcharts = echarts.init(box1) let option = { title: { text: '柱状图-就业行业', left: 'center' 阅读全文

posted @ 2020-07-03 09:34 章画 阅读(353) 评论(0) 推荐(0) 编辑

2020年7月1日

2020-7-1

摘要: 1.两位小数字输出,超过两位保持不动 function formmatData(val) { if (val) { if (val.toString().split(".")[1]) { return val.toString().split(".")[1].length == 2 ? val.to 阅读全文

posted @ 2020-07-01 10:50 章画 阅读(105) 评论(0) 推荐(0) 编辑

2020年6月30日

vue 图片路径问题

摘要: 图片路径问题 module.exports = { // 根据环境区分 生产服务器production比如php服务器的地址 和 开发服务器dev的地址 // npm run serve是开发环境develope npm run build是生产环境production publicPath: pr 阅读全文

posted @ 2020-06-30 13:45 章画 阅读(654) 评论(0) 推荐(0) 编辑

导航