在ie中打开或下载

xiaoxiao2021-03-01  3

在ie中打开或下载文件在jsp加入下面这句<%@ page contentType="application/msword;charset=utf8" %> 后台代码这样写 response.setHeader("Content-disposition","inline; filename=文件名.doc"); //线上浏览方式,用IE打开response.setHeader("Content-disposition","attachment; filename=文件名.doc");//下载方式
转载请注明原文地址: https://www.6miu.com/read-3850294.html

最新回复(0)