2020年6月30日

2020/6.30

摘要: 1.'2020-06-29 23:59:59'--> '6.29' let res='2020-06-29 23:59:59' //6.29 let res1=res .slice(5).split(" ")[0].replace("-", ".") console.log(res1); 2. 91 阅读全文

posted @ 2020-06-30 10:51 章画 阅读(128) 评论(0) 推荐(0) 编辑

2020年6月29日

bar

摘要: 柱状图形式1 series: [{ data: [120, 200, 150, 80, 70, 110, 130], type: 'bar', showBackground: true, backgroundStyle: { color: 'rgba(220, 220, 220, 0.8)' }, 阅读全文

posted @ 2020-06-29 17:50 章画 阅读(224) 评论(0) 推荐(0) 编辑

tooltip

摘要: const opton={ tooltip: { trigger: 'axis', // 散点图,饼图 item; 柱状图,折线图 axis axisPointer: { type: 'shadow' } //shadow cross line none }, } 阅读全文

posted @ 2020-06-29 17:48 章画 阅读(233) 评论(0) 推荐(0) 编辑

xAxis&yAxis

摘要: const option = { color: ['#546570', '#2f4554', '#61a0a8'], xAxis: { type: 'category', data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], axisLin 阅读全文

posted @ 2020-06-29 17:18 章画 阅读(650) 评论(0) 推荐(0) 编辑

2020年6月28日

element.ui 自定义样式问题

摘要: 方法有很多种 自定义类名 <el-button class="search_button" @click="search">查询</el-button> .search_button { color: #ffffff; background: #15ac86; border: none; borde 阅读全文

posted @ 2020-06-28 14:21 章画 阅读(4463) 评论(0) 推荐(0) 编辑

el-select 封装

摘要: 这里打算封装一个全局el-select组件 MySelect.vue <template> <el-select v-if="options.length!==0" :value="value" @input="$emit('input',$event)" :placeholder="placeho 阅读全文

posted @ 2020-06-28 12:29 章画 阅读(2006) 评论(0) 推荐(0) 编辑

2020年6月27日

18 vue 动态路由传参

摘要: params形式 http://192.168.1.100:8080/#/infoDetailed/231 //定义路由{ path: "/infoDetailed/:newsId", name: "InfoDetailed", component: () => import("@/views/in 阅读全文

posted @ 2020-06-27 16:44 章画 阅读(308) 评论(0) 推荐(0) 编辑

promise 练习

摘要: 宏队列(dom事件,ajax,定时器)和微队列(promise);微队列先于宏队列执行。 setTimeout(() => { console.log(1); }, 0); new Promise(resolve => { console.log(2); resolve() //resolve()函 阅读全文

posted @ 2020-06-27 10:40 章画 阅读(132) 评论(0) 推荐(0) 编辑

2020年6月26日

04async await

摘要: async async 函数返回值是一个promise对象,promise对象的状态由async函数的返回值决定 //函数的三种定义 async function hello() { return "Hello" }; let hello = async function() { return "H 阅读全文

posted @ 2020-06-26 20:32 章画 阅读(126) 评论(0) 推荐(0) 编辑

09 promise then

摘要: then() 方法返回一个 Promise 链式调用:then里面回调函数(成功回调和失败回调),凡事这两个回调函数里面抛出错误或者返回一个已经是拒绝状态的 Promise。 那么 then 返回的 Promise 对象将是rejected状态,走下一个then里面的失败回调函数 catch() 方 阅读全文

posted @ 2020-06-26 17:30 章画 阅读(127) 评论(0) 推荐(0) 编辑

导航