exceljs
2024-05-11ExcelJS is a JavaScript library that allows for the creation, manipulation, and reading of files. It can be used in Node.js to generate Excel files from scratch, modify existing Excel files, or extract data from Excel files. ExcelJS provides an easy-to-use API for working with Excel
Invalid attempt to spread non-iterable instance.In order to be iterable, n
2024-05-10为了可迭代,非数组对象必须具有[Symbol.iiterator]()方法。出现这个报错的时候一般都是在对象前面使用了扩展运算符。如果只是想将对象里面的值赋给数组可以使用for in。要是还有别的方法欢迎大佬来留言。传播不可迭代实例的尝试无效。_invalid attempt to spread non-iterable instance. in order to be iterable, no
Vue3使用vue-office插件实现word预览
2024-05-10我们可以给input绑定一个change事件, 当我们选择了文件, change就会触发返回给我们一个event对象, 我们通过event对象中的属性就可以拿到我们的file对象了。其实并不然, 我们开发中还会遇到另一种情况, 就是通过文件上传的方式, 获取文件的ArrayBuffer或者blob来预览文档。获取到了之后, 我们需要使用Filereader身上的实例方法来读取我们的文件内容。随后, 我们赋值一个响应式数据, 用于我们的word展示。这样, 我们的代码就写完了, 我们看看效果。_vue文件预览插件
npm出现 Error: EISDIR: illegal operation on a directory, read
2024-05-09npm出现 Error: EISDIR: illegal operation on a directory, read_eisdir: illegal operation on a directory, read
Vue 警告 Write operation failed: computed value is readonly
2024-05-09控制台警告:Write operation failed: computed value is readonly_write operation failed: computed value is readonly
JS 创建数组 ( 6种方法 )
2024-05-09JS创建数组可通过字面量、构造函数Array()、Array.of()、Spread运算符、Array.from()等方式,例如:let arr = [1, 2, 3]、let arr = new Array(3)、let arr = Array.of(1, 2, 3)、let arr = [...'abc']、let arr = Array.from({length: 3}, (_, i) => i 1)。_js 构建数组
Resolved [org.springframework.http.converter.HttpMessageNotreadableException: JSON parse error: Cann
2024-05-05Resolved [org.springframework.http.converter.HttpMessageNotreadableException: JSON parse error: Cannot deserialize value of type `java.sql.Timestamp` from String "2024-02-20 19:34:16.0": expected format "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"_resolved [org.springframework.http.converter.httpmessagenotreadableexception
报错:HttpMessageNotreadableException: JSON parse error: Unexpected end-of-input
2024-05-05>测试接口发送请求时后端报错:org.springframework.http.converter.HttpMessageNotreadableException: JSON parse error: Unexpected end-of-input: expected close marker for Object (start marker at [Source: (PushbackInputStream); line: 1, column: 1]); nested exception is com.fa_org.springframework.http.converter.httpmessagenotreadableexception: json par
JQuery 只读(readOnly)和禁用(disabled)
2024-05-05只读和禁用属性,其实只要掌握一种,就会第二种,两种方法一样,就是属性变了一下!_jq readonly
typeScript内置工具类型,通俗易懂,例子解释(Record、readonly、Required、Partial、Extract、Exclude、Pick、Omit、NonNullable..)
2024-05-03TS常用内置的工具类型有,Record、readonly、Required、Partial、Extract、Exclude、Pick、Omit、NonNullable、Parameters、ReturnType。记住这些,在开发中,将会提高我们的开发效率。_ts 内置工具