当前位置: 首页 > 工具软件 > Live View > 使用案例 >

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

贺立果
2023-12-01

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')
 类似资料: