摘要: 1.结构体序列化 package main import ( "encoding/json" "fmt" ) //定义一个结构体 type Monster struct { Name string Age int Birthday string Sal float64 skill string } 阅读全文
posted @ 2021-06-26 16:32 创客未来 阅读(1138) 评论(0) 推荐(0) 编辑
摘要: 1.下载 npm install moment --save 2.main.js 挂载 引入 import moment from 'moment'//导入文件 Vue.prototype.$moment = moment;//赋值使用 3.组件中使用 const YYYYMMDD=this.$mo 阅读全文
posted @ 2021-06-26 12:12 创客未来 阅读(679) 评论(0) 推荐(0) 编辑
摘要: 1.安装依赖 npm install -s file-saver xlsx npm install -d script-loader 2.在src目录下的utils文件夹里面放入Blob.js和Export2Excel.js两个文件 1)Blob.js /* eslint-disable */ /* 阅读全文
posted @ 2021-06-26 10:06 创客未来 阅读(85) 评论(0) 推荐(0) 编辑
摘要: ★基本介绍 1)打开一个文件进行操作: os.Open(name string) ( *File,error) 2)关闭一个文件 File.Close() ★读文件 1)带缓冲区的读取方式 读取文件的内容并显示在终端(带缓冲区的方式),使用os.Open,file.Close,bufio.NewRe 阅读全文
posted @ 2021-06-26 08:28 创客未来 阅读(172) 评论(0) 推荐(0) 编辑