摘要: // ==UserScript== // @name 知乎-关闭登录-自动跳转链接 // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @autho 阅读全文
posted @ 2022-03-01 11:23 lwlcode 阅读(451) 评论(0) 推荐(0) 编辑
摘要: 灵感来源 在codepen上看到一个大佬的作品,比较有意思,就想用vue写一个更简单的。代码很简单。 gif演示图片加载缓慢,可以点击这里可以查看代码运行效果 全部代码 <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>数字时 阅读全文
posted @ 2022-02-17 17:44 lwlcode 阅读(1136) 评论(0) 推荐(0) 编辑
摘要: 主要是通过wkhtmltopdf生成pdf,但是不支持css3,想要更好的支持css样式可以使用node环境的puppeteer,关于puppeteer的使用可以点这里瞬移使用puppeteer生成pdf与截图 vue-cli3好像不支持wkhtmltopdf(可以自行研究一下),这里是说一下vue 阅读全文
posted @ 2022-01-12 11:29 lwlcode 阅读(1758) 评论(3) 推荐(1) 编辑
摘要: GitHub520 一、介绍 对 GitHub 说"爱"太难了:访问慢、图片加载不出来。 注: 本项目还处于测试阶段,仅在本机测试通过,如有问题欢迎提 issues 本项目无需安装任何程序,通过修改本地 hosts 文件,试图解决: GitHub 访问速度慢的问题 GitHub 项目中的图片显示不出 阅读全文
posted @ 2022-01-01 22:51 lwlcode 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 1、进入当前用户的目录,cd 或者cd ~ 2、安装工具 git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh 3、拷贝配置文件 cp ~/.oh-my-zsh/templates/zshrc.zsh-template 阅读全文
posted @ 2021-12-22 10:52 lwlcode 阅读(135) 评论(0) 推荐(0) 编辑
摘要: <template> <el-dialog class="my-dialog" width="70%" :visible.sync="dialogVisible" > <div>dialog内容区域</div> <span slot="footer" class="dialog-footer"> < 阅读全文
posted @ 2021-12-20 16:39 lwlcode 阅读(453) 评论(0) 推荐(0) 编辑
摘要: 让input一直保持聚焦只需要在input失去焦点事件中再次添加焦点就可以保证永永远不失去焦点了 // 原生js <input onblur="this.focus()" /> // vue中 <input @blur="$event.target.focus()" /> 让input聚焦全选 // 阅读全文
posted @ 2021-12-06 16:43 lwlcode 阅读(2601) 评论(0) 推荐(1) 编辑
摘要: 1.Vue3简介 2020年9月18日,Vue.js发布3.0版本,代号:One Piece(海贼王) 耗时2年多、2600+次提交、30+个RFC、600+次PR、99位贡献者 github上的tags地址:https://github.com/vuejs/vue-next/releases/ta 阅读全文
posted @ 2021-08-27 18:44 lwlcode 阅读(1592) 评论(0) 推荐(0) 编辑
摘要: 修改store.js const countAbout = { namespaced: true, // 开启命名空间 state: { x: 1 }, mutations: { ... }, actions: { ... }, getters: { bigSum(state) { return s 阅读全文
posted @ 2021-08-27 10:29 lwlcode 阅读(270) 评论(0) 推荐(0) 编辑
摘要: Vue与VueComponent的关系图 Vue全局事件总线 全局事件总线是一种组件间通信的方式,适用于任意组件间通信。 相当于给每个组件做个代理,作为数据通信的中转站。 其本质是Vue的实例对象,通过$emit、$on、$off发布、监听、关闭事件。 所以就需要每个子组件都能访问的到(每个子组件实 阅读全文
posted @ 2021-08-26 11:02 lwlcode 阅读(855) 评论(0) 推荐(0) 编辑