1
<pre lang="HTML">
<img alt="" name="Code_Verify" id="Code_Verify" align="top" 
     src="/ipcast_os/login_auth/display_verify"/>
</pre>

display_verify是输出识别码的函数。为什么src属性不是图像文件的目录?

4

1 回答 1

1

属性的 content-type 或 mime-type 不是由客户端(您的浏览器)强制执行的。实际上,即使没有类似.jpeg.png其他的扩展名,Web 服务器也可能会为该请求返回有效图像。

GET当向 path 发出请求时,由您的服务器以正确的图像进行响应/ipcast_os/login_auth/display_verify

如果您提供有关您的 javascript 的其他信息,我们可以更轻松地为您提供帮助。

于 2013-04-16T00:45:53.817 回答