开发者

Check if a browser supports a specific MIME type?

How can i check if the browser supports a specific mime type wi开发者_C百科th php?


You could analyze the Accept header field to see if the type or a superset of that type is listed.

But notice that Accept is a list of rated values and a quality value of 0 means not accepted. And browsers send different Accept values based on their expectations for that resource (e.g. a resource referenced in IMG element is expected to be an element of image/*).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜