duanzs 最近的时间轴更新
duanzs

duanzs

V2EX 第 326849 号会员,加入于 2018-07-04 18:50:37 +08:00
正则表达式:开闭区间
正则表达式  •  duanzs  •  2021-03-09 15:25:48 PM  •  最后回复来自 duanzs
2
H5 不同域名页面跳转如何携带 cookie
HTML  •  duanzs  •  2020-12-22 15:49:14 PM  •  最后回复来自 eason1874
2
mybatis 如何拦截空 where 条件的 sql
  •  1   
    MySQL  •  duanzs  •  2020-12-22 14:06:21 PM  •  最后回复来自 sweetsorrow211
    21
    如何实现一个前端小的路由跳转工具包(路由器)?
    Node.js  •  duanzs  •  2020-11-24 12:22:48 PM  •  最后回复来自 phobal
    3
    index.html 放在服务器上,浏览器输入地址链接是下载而不是打开
    HTML  •  duanzs  •  2020-09-23 15:41:26 PM  •  最后回复来自 lxk11153
    18
    一个关于 mysql 锁问题
    MySQL  •  duanzs  •  2020-06-21 15:55:22 PM  •  最后回复来自 crclz
    9
    为什么 vue 项目木打包后必须部署在服务器或本地起一个 web 服务才能运行?
  •  1   
    webpack  •  duanzs  •  2020-06-05 09:51:30 AM  •  最后回复来自 duanzs
    7
    vue 编译后如何嵌入到类似 jsp 老系统中?
    webpack  •  duanzs  •  2019-11-18 17:50:42 PM  •  最后回复来自 duanzs
    3
    js 正则处理掉字符串中图片 base64 码
    Node.js  •  duanzs  •  2019-07-23 08:54:44 AM  •  最后回复来自 mystorp
    2
    duanzs 最近回复了
    2020-12-22 11:02:16 +08:00
    回复了 duanzs 创建的主题 MySQL mybatis 如何拦截空 where 条件的 sql
    @opengps 我们就是这个问题
    2020-12-21 17:03:38 +08:00
    回复了 duanzs 创建的主题 MySQL mybatis 如何拦截空 where 条件的 sql
    @anzu 这个还是要靠人来控制

    @kran 没用这个
    2020-09-23 15:36:58 +08:00
    回复了 duanzs 创建的主题 HTML index.html 放在服务器上,浏览器输入地址链接是下载而不是打开
    @lxk11153 没有“Content-Disposition: attachment”,是不是也不能进行网络请求
    2020-09-23 15:30:51 +08:00
    回复了 duanzs 创建的主题 HTML index.html 放在服务器上,浏览器输入地址链接是下载而不是打开
    @YuxiangLuo 即便是没加这个,我也不能进行网络请求是把
    2020-09-23 15:25:55 +08:00
    回复了 duanzs 创建的主题 HTML index.html 放在服务器上,浏览器输入地址链接是下载而不是打开
    这是我测试文件


    <!DOCTYPE html>
    <html>

    <head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Insert title here</title>
    </head>

    <body>
    测试
    </body>
    </html>
    2020-09-23 15:24:59 +08:00
    回复了 duanzs 创建的主题 HTML index.html 放在服务器上,浏览器输入地址链接是下载而不是打开
    @YuxiangLuo 我不是要下载这个文件,我想打开这个文件
    2020-09-23 15:21:31 +08:00
    回复了 duanzs 创建的主题 HTML index.html 放在服务器上,浏览器输入地址链接是下载而不是打开
    @lxk11153 404
    File not found

    The site configured at this address does not contain the requested file.

    If this is your site, make sure that the filename case matches the URL.
    For root URLs (like http://example.com/) you must provide an index.html file.

    Read the full documentation for more information about using GitHub Pages.

    GitHub Status — @githubstatus
    2020-09-23 15:20:49 +08:00
    回复了 duanzs 创建的主题 HTML index.html 放在服务器上,浏览器输入地址链接是下载而不是打开
    @Tink 这是响应结果,指定 Content-Type: text/html 了,还是下载


    Access-Control-Allow-Headers: DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization
    Access-Control-Allow-Methods: GET, POST, OPTIONS
    Access-Control-Allow-Origin: *
    Cache-Control: max-age=0
    Content-Disposition: attachment; filename="test.html"
    Content-Encoding: gzip
    Content-Type: text/html
    Date: Wed, 23 Sep 2020 07:18:39 GMT
    ETag: W/"fef40692c82492577988854f508d411d"
    Expires: Wed, 23 Sep 2020 07:18:39 GMT
    Last-Modified: Wed, 23 Sep 2020 07:15:26 GMT
    Server: openresty
    Transfer-Encoding: chunked
    Vary: Accept-Encoding
    x-jss-request-id: 9338D2040B2AB5C3
    2020-09-23 15:14:36 +08:00
    回复了 duanzs 创建的主题 HTML index.html 放在服务器上,浏览器输入地址链接是下载而不是打开
    @liyang5945
    @songjiaxin2008
    两位大佬,content-type 这个东西不是请求相关的吗,跟本身文件有关系?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3208 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 11:34 · PVG 19:34 · LAX 04:34 · JFK 07:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.