摘要: 使用pdf.js窗口预览pdf 一、业务场景 预览pdf一般通过浏览器自带的pdf预览器就可以,但有时候需要窗口预览或自定义操作,可以使用pdf.js操作 二、使用方法 1. 下载安装 pdf.js需要构建后使用,我们可以直接下载安装pdfjs-dist,这是构建好的版本 npm install p 阅读全文
posted @ 2024-01-07 11:35 lupulus 阅读(2642) 评论(0) 推荐(0) 编辑
摘要: 本地localhost服务不可用解决方法 阅读全文
posted @ 2023-09-14 22:52 lupulus 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 学习下vuex的基本使用 阅读全文
posted @ 2022-08-03 15:10 lupulus 阅读(163) 评论(2) 推荐(1) 编辑
摘要: 具名插槽,作用域插槽再也不会一知半解 阅读全文
posted @ 2022-08-02 09:48 lupulus 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 自定义组件上使用v-model和.sync,简单的事情就要简单学 阅读全文
posted @ 2022-07-29 10:42 lupulus 阅读(1109) 评论(1) 推荐(2) 编辑
摘要: vue2中那些基础的组件通信方式 阅读全文
posted @ 2022-07-28 11:10 lupulus 阅读(692) 评论(1) 推荐(1) 编辑
摘要: vue项目菜单栏实现方案 阅读全文
posted @ 2022-07-27 11:18 lupulus 阅读(1174) 评论(0) 推荐(0) 编辑
摘要: ES6 class中的一些问题 记录下class中的原型,实例,super之间的关系 //父类 class Dad { constructor(x, y) { this.x = 5; this.y = 1; this.state = 789 } static x = 521 state1 = 666 阅读全文
posted @ 2022-07-21 15:15 lupulus 阅读(240) 评论(0) 推荐(0) 编辑
摘要: flex三连问,帮助我们更好的理解布局利器 问题: flex的值 auto, none, 0, 1, initial分别是什么?有什么作用?有什么表现? flex-basis和width的区别?单值flex-basis:0与auto的区别?flex-basis:100px与width:100px一样 阅读全文
posted @ 2022-04-03 00:07 lupulus 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 如果你对javascript的原型链还有任何疑问,请看这篇文章 进入主题 前言 原型链的规则不百分百适用于所有情况 显式原型:prototype,是一个对象{} 隐式原型:__proto__,是一个对象的属性 原型链规则 任何一个引用类型的对象都有一个__proto__属性指向它的构造函数的prot 阅读全文
posted @ 2022-03-30 15:46 lupulus 阅读(41) 评论(0) 推荐(0) 编辑