eslint 配置
摘要:{ "editor.tabSize": 2, "standard.validate": [ "javascript", "javascriptreact", { "language": "vue", "autoFix": true } ], "standard.options": { "plugin": [ ...
阅读全文
获取数组的随机数
摘要:getRondom (arr, len) { var out = [] while (len) { var index = Math.floor(Math.random() * arr.length) if (out.includes(index)) { } else { arr.splice(index, 1) out = out.concat(index) len-- } } return o
阅读全文
封装一个拖拽
摘要:export default { bind: function (el, binding, vnode) { const docEl = document.documentElement const move = function (e) { e.preventDefault() if (e.targetTouches.length === 1) { ...
阅读全文
伪类
摘要:.view-action[data-v-eed1247a]:before { content: ""; position: absolute; width: .75rem; height: .75rem; border-style: solid; border-color: #fff; border-width: .0625rem 0 0 .0625rem; -webkit-transform:
阅读全文
svg使用
摘要:Vue.component('XSvg', () => import('./abc-svg')) <x-svg icon-name="personl" height="24" @click.native="" > <icon-personl /> </x-svg> <x-svg icon-name=
阅读全文
react 管理平台
摘要:https://open.vbill.cn/react-admin/ 开源中国:https://gitee.com/sxfad/react-admin.git GitHub:https://github.com/sxfad/react-admin.git 文档:https://open.vbill.
阅读全文
首页性能优化
摘要:1. 用 ... 动态效果 吸引注意力, 动画可以让人感觉时间快一些, 动画做大一点 2. 不是首页的js不用引入, 暂时没找到好的实现方法 3. ssr
阅读全文
vue 安装插件
摘要:https://www.cnblogs.com/mengfangui/p/9046525.html
阅读全文
水波效果
摘要:.download-app { position: fixed; bottom: 0; left: 0; z-index: 20; color: #fff; font-size: 24px; overflow: hidden; width: 100%; height: 84px; background: url("../../../../assets/images/base/wave_bg.png
阅读全文
vue 换肤
摘要:/* eslint-disable */ // 设置文件 import setting from "@/setting.js"; const themeList = setting.theme.list; export default { namespaced: true, state: { // 主题 list: themeList, // 现在激活的主题 这应该是一个名字 不是对象 activ
阅读全文
工具 集合
摘要:cdn 又拍云 https://xiaozhuanlan.com/moocba 这个网站加速后确实快. 快速制h5页面 FQ--搬瓦工 shadowsocks
阅读全文