摘要: fetch请求的封装 const fetch = function(url, setting) { // fetch请求的封装 let opts = { // 设置参数的初始值 method: (setting.method || 'GET').toUpperCase(), // 请求方式 head 阅读全文
posted @ 2021-05-31 15:57 bomdeyada 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 取自doit-ui-web ,基于ant.design封装的功能组件, 实现多选级联样式表功能,根据自身情况 引入到自己的项目中 <template> <div class="gb-ant-select-multiple-cascader" :class="{ 'multiple-cascader- 阅读全文
posted @ 2022-10-21 14:05 bomdeyada 阅读(3290) 评论(0) 推荐(0) 编辑
摘要: HTML代码: <!doctype html> <html> <head> <meta charset="utf-8"> <title>【每日一练】69—CSS实现一个牛奶加载动画</title> </head> <body> <div class="container"> <h2>牛奶</h2> 阅读全文
posted @ 2022-09-30 13:57 bomdeyada 阅读(39) 评论(0) 推荐(0) 编辑
摘要: HTML: <div class="parent" style="background: black; width: 200px; height: 200px"> <div class="child" style="background: red; width: 100px; height: 100 阅读全文
posted @ 2022-09-30 13:55 bomdeyada 阅读(23) 评论(0) 推荐(0) 编辑
摘要: mounted () { screenfull && screenfull.isEnabled && screenfull.onchange(() => { this.isfull= !this.isfull; }) }, 阅读全文
posted @ 2022-09-08 09:18 bomdeyada 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 最近在写ag-grid-vue的项目 ,用到了导出Excel功能,但是导出的数据是原始数据,不怎么理想,后来找了点方法进行处理,导出效果很好 <AgGrid ... :defaultExcelExportParams="defaultExcelExportParams" ></AgGrid> dat 阅读全文
posted @ 2022-09-02 10:39 bomdeyada 阅读(704) 评论(1) 推荐(0) 编辑
摘要: 有时需要调试生产环境设置,在项目打包build 构建完成后,若需开启服务 快捷方法 : 1、全局安装http-server插件: cnpm i http-server -g 2、进入打包目录 :cd dist 3、运行: http-server 阅读全文
posted @ 2022-04-27 11:59 bomdeyada 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 1、生成随机字符串 const randomString = () => Math.random().toString(36).slice(2) randomString() // gi1qtdego0b randomString() // f3qixv40mot randomString() // 阅读全文
posted @ 2022-04-06 15:58 bomdeyada 阅读(23) 评论(0) 推荐(0) 编辑
摘要: this.content=null;this.range = null; getHtml (win) { if (win) { let range = {}; const createFragment = (html) => { if (html.toString()) { const div = 阅读全文
posted @ 2022-02-09 14:39 bomdeyada 阅读(471) 评论(0) 推荐(0) 编辑
摘要: 想直接写一个简易表格,但是CSS想了好久才记起来 直接上图: css: &:nth-child(8n+1), &:nth-child(8n+2), &:nth-child(8n+3), &:nth-child(8n+4) 阅读全文
posted @ 2021-09-07 11:43 bomdeyada 阅读(216) 评论(0) 推荐(0) 编辑