• 2023-11-14js 大文件分割/分片上传
    <!DOCTYPEhtml><html><head><metaname="viewport"content="width=device-width,initial-scale=1.0"/><title>uploadFile</title><style></style></head><body>&
  • 2023-07-04OnlyOffice文件回调接口net core 版本
    publicclassOfficeFilesController:BaseController//Controller{///<summary>///保存OnlyOffice文件///</summary>[HttpPost]publicvoidSaveOnlyOfficeFile(){varfileDataJson=string.Em
  • 2023-06-18unity将安卓streamingAssetsPath文件复制到persistentDataPath
    privatevoidTestCopy(){stringfrom=Application.streamingAssetsPath+"/Test/test.txt";stringto=Application.persistentDataPath+"/Test/";CopyFile(from,to);}publicstaticvoidCopyFile(stringsourcePath,stringdesti
  • 2023-04-10使用浏览器api操作本地文件 File System Access API
    学习新的浏览器api:showOpenFilePicker,showDirectoryPicker,getDirectoryHandle,getFileHandle,removeEntry之前文件上传使用的是:<inputtype="file">今天看到直接使用浏览器api即可实现文件读取,文件删除,写入等,局限性:需要https环境,如果是本地localhost不受此限制。不能在ifr
  • 2023-03-20vue上传图片
    <divclass="row-center"><divclass="Default-avatarcuractive"@click="setAvater"><img:src="userInfo.avatar||
  • 2022-12-22vue中读取本地Excel文件
    readExcelFileconstXLSX=require('xlsx')constpath="./file/file.xlsx"//放在public目录下的文件可以直接访问axios.get(path,{responseType:'arraybuffer'
  • 2022-11-24JS 开始时间/结束时间和当前时间进行比较
     项目需求:到截止日期一些功能不可以再使用,那么需要判断当前时间与截止时间进行比较,记录一下吧 注意:1.橙色字体的代码换成你自己的变量2..valueOf()其实就是将中国
  • 2022-10-18关于ES索引被聚合查询导致filedata堵塞 (pressure too high, (smooth) bulk request circuit break)
    今天在生产使用kibana查询了一条聚合语句,因为数据量比较大(40亿+),导致fielddatacache飙升,影响了写入,根据官方文档,进行如下操作:执行命令,查询filedatacache使用比较大的索引