在从jQuery成功调用AJAX时检索glyphicons-halflings-regular.woff2时出错

前端之家收集整理的这篇文章主要介绍了在从jQuery成功调用AJAX时检索glyphicons-halflings-regular.woff2时出错前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我得到一个错误消息说,jQuery找不到glyphicons-halflings-regular.woff2的路径。当成功的AJAX请求的函数运行时,错误显示。在那个函数中,我插入了一个超链接,它使用了来自Twitter Bootstrap的glyphicon。

看看路径,我确信它是正确的路径,所以我不知道为什么它给我的错误。如何解决这个错误

解决方法

使用IIS我在Web.config文件中修复它,在< system.webServer&gt ;:中添加以下内容
<staticContent>
    <remove fileExtension=".woff" />
    <remove fileExtension=".woff2" />
    <mimeMap fileExtension=".woff" mimeType="application/font-woff" />
    <mimeMap fileExtension=".woff2" mimeType="application/font-woff" />
</staticContent>

注意,我删除的扩展名,如果它们已经存在。

原文链接:https://www.f2er.com/jquery/185429.html

猜你在找的jQuery相关文章