上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 23 下一页
摘要: 1、element-ui的按需引入 npm i element-ui -Snpm install babel-plugin-component -Dvue-cli2.x版本修改.babelrc文件(在后面统一贴代码)2、vant的按需引入 npm i vant -S npm i babel-plug 阅读全文
posted @ 2021-05-12 11:20 yw3692582 阅读(815) 评论(0) 推荐(0)
摘要: // 迭代器 Iteration() { /** * 适用场景: * 1、forEach: 适用用对数组进行操作,参考for循环 * 2、every:适用于对数组所有元素进行同一个判断,返回布尔值 * 3、some:适用于判断某个元素是否符合函数,返回布尔值 * 4、reduce:适用于对数组元素进 阅读全文
posted @ 2021-05-11 09:35 yw3692582 阅读(157) 评论(0) 推荐(0)
摘要: // 第一种:用async、await修饰 async function a() { let b = await crawer("参数"); console.log(b); } a(); // 第二种:用.then接收 let b = crawer("参数") .then((res) => { co 阅读全文
posted @ 2021-04-30 22:13 yw3692582 阅读(312) 评论(0) 推荐(0)
摘要: <template> <div class="hello"> <EncapTable ref="items" :Data="Data"></EncapTable> </div> </template> <script> import EncapTable from "./EncapTable"; e 阅读全文
posted @ 2021-04-30 10:59 yw3692582 阅读(2883) 评论(0) 推荐(0)
摘要: <template> <div> <!-- 基于el-table二次封装的一个table组件,功能包括:搜索、编辑、删除、分页 --> <el-table :data=" getSearchInfo.slice( (currpage - 1) * Data.pageSize, currpage * 阅读全文
posted @ 2021-04-30 10:57 yw3692582 阅读(402) 评论(0) 推荐(0)
摘要: formatNode(node) { // 获取websocket发送的msg信息,写了一个递归,前提是要在调用formatNode函数传入的参数控制好 if (node.key != '值') { // 在sendMsg的头部添加,这样是为了后面转成字符串 this.sendMsg.unshift 阅读全文
posted @ 2021-04-28 09:33 yw3692582 阅读(52) 评论(0) 推荐(0)
摘要: shutter.js百叶窗(好像需要配合velocity.js)、slick.js幻灯片 地址: https://www.html5tricks.com/demo/jquery-blinds-player/index.html(百叶窗) https://www.html5tricks.com/dem 阅读全文
posted @ 2021-04-25 14:05 yw3692582 阅读(144) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content 阅读全文
posted @ 2021-04-25 13:45 yw3692582 阅读(1805) 评论(0) 推荐(0)
摘要: let arr = [1, [1, 2], [2, , [3, 4, 5], 3,{'user_name':'张三','password':'admin'}], 4]; let newArr = []; function ddd(data) { data.forEach((item) => { if 阅读全文
posted @ 2021-04-23 15:40 yw3692582 阅读(451) 评论(0) 推荐(0)
摘要: // 简单粗暴,适用于简单的一些判断 let obj = { 1:'1', 2:'2', 3:'3' } return obj[a] 阅读全文
posted @ 2021-04-23 14:09 yw3692582 阅读(246) 评论(0) 推荐(0)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 23 下一页