摘要: 1.yarn add vuedraggable 或者 npm i -S vuedraggable 先引入 vuedraggable 2.在需要拖拽的页面引入注册 3.在页面中使用 <!-- 绑定循环出来的数组 chosen-class是拖拽时自定义的样式 force-fallback为开启自定义样式 阅读全文
posted @ 2022-05-25 09:59 热爱前端的5号机器 阅读(2622) 评论(0) 推荐(0) 编辑
摘要: let array=['boolean','true','number','true'] let arr=[] array.map((v)=>{ if( !arr.includes(v) ) { //判断arr里面是否有当前元素 arr.push(v); //没有就往里面push } return 阅读全文
posted @ 2022-05-24 10:46 热爱前端的5号机器 阅读(127) 评论(0) 推荐(0) 编辑
摘要: let arr=['boolean','true','number'] //从arr索引为1的位置删除1个再添加‘feb’进去 arr.splice(1, 1,'Feb') console.log(arr) //得到的是 (3) ['boolean', 'Feb', 'number'] let ar 阅读全文
posted @ 2022-05-24 10:30 热爱前端的5号机器 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 1 .需要下载你需要的字体 xxx字体.ttf 2.在你需要的页面引入他 3 .在你需要的标签上 加上你自定义的css属性就可以使用了 阅读全文
posted @ 2022-05-20 11:08 热爱前端的5号机器 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆在pages.json中配置 👇👇👇👇👇👇👇👇👇👇👇👇👇👇👇Ԁ 阅读全文
posted @ 2022-05-13 14:31 热爱前端的5号机器 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-04-06 10:44 热爱前端的5号机器 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 1.npm 或者 yarn 安装 2.在vue页面中使用 3.html 4完整代码 <template> <div class="Carpiao_container"> <div class="content"> <!-- 绑定循环出来的数组 chosen-class是拖拽时自定义的样式 force 阅读全文
posted @ 2022-04-06 09:53 热爱前端的5号机器 阅读(1724) 评论(0) 推荐(0) 编辑
摘要: 1.element的 el-date-picker <el-date-picker :picker-options="setFulltime" style="width:100%" v-model="ruleForm.Time" type="datetime" placeholder="选择日期时间 阅读全文
posted @ 2022-03-31 15:33 热爱前端的5号机器 阅读(714) 评论(0) 推荐(1) 编辑
摘要: body::-webkit-scrollbar{ width:10px; } body::-webkit-scrollbar-track{ background: #999; border-radius:2px; } body::-webkit-scrollbar-thumb{ background 阅读全文
posted @ 2022-03-31 15:27 热爱前端的5号机器 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 1.下载vsCode插件vetur 2.打开vs code设置 3.搜索 vetur.format 4.在搜索出来内容里面找到 对应的setting.json文件 5.把代码换了 {"vetur.format.defaultFormatter.html": "js-beautify-html", " 阅读全文
posted @ 2022-03-31 09:26 热爱前端的5号机器 阅读(1190) 评论(0) 推荐(0) 编辑