今天做了一个测试,好象设置HTTP头中的Content-Script-Type没大多用处

如在后台代码中:

Response.AppendHeader("Content-Script-Type", "text/vbscript");

前端测试的vbscript脚本代码:

这里特意不写上 type="text/vbscript"

<script >
            
dim a,b,c
            a 
= "bbb"
            document.write(a)
        
</script>

 

好运行一下

HTTP请求的内容如下:

HTTP/1.1 200 OK
Server: ASP.NET Development Server/8.0.0.0
Date: Thu, 11 Jun 2009 15:18:05 GMT
X-AspNet-Version: 2.0.50727
Content-Script-Type: text/vbscript
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 1355
Connection: Close

 

但最终代码运行是出错的,不知道什么原因

不是设置了Content-Script-Type为text/vbscript了吗?

 

相关文章:

  • 2021-05-21
  • 2021-12-26
  • 2021-06-18
  • 2021-12-25
  • 2021-12-15
  • 2022-12-23
  • 2021-12-29
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2021-11-28
  • 2021-08-10
相关资源
相似解决方案