vue项目在线浏览word文件
文章目录
在线浏览word文件
// 微软浏览文件官方前缀
let base = 'http://www.xdocin.com/xdoc?_func=to&_format=html&_cache=1&_xdoc='
// fileUrl自己word文档存储的线上地址
let fileUrl = '线上文件地址'
let url = encodeURIComponent(fileUrl)
window.open(base + url, '_blank')在线浏览word文件
// 微软浏览文件官方前缀
let base = 'http://www.xdocin.com/xdoc?_func=to&_format=html&_cache=1&_xdoc='
// fileUrl自己word文档存储的线上地址
let fileUrl = '线上文件地址'
let url = encodeURIComponent(fileUrl)
window.open(base + url, '_blank')
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论