调用view.officeapps.live.com预览文档(word、ppt、xls),解决无法读取oss私有文件问题

encodeURIComponent(url)

let result= "http://xxx.oss-cn-shanghai.aliyuncs.com/report/work.docx?OSSAccessKeyId=LTAI4GGvJTbm7fTKs&Expires=1636425239&Signature=c6xf8qQ5rV78Y%3D"
let resultNew= encodeURIComponent(result)
let url= 'http://view.officeapps.live.com/op/view.aspx?src='+ resultNew
window.open(url,'_target')
上一篇:阿里云oss之间迁移测试


下一篇:MySQL数据清理的需求分析和改进