简体   繁体   English

jQuery 3D标签云插件在IE和chrome中不起作用

[英]jQuery 3D tag cloud plugin doesn't work in IE and chrome

Does anyone know why Jquery 3D tag cloud plugin doesn't work in IE and Chrome? 有谁知道为什么Jquery 3D标签云插件在IE和Chrome中不起作用?

See plugin 查看插件

The plugin works fine in Chrome and IE11 when you run it on JSBin and embed the JS code on the page ( http://jsbin.com/IJUGEDA/1 ). 当您在JSBin上运行插件并将JS代码嵌入页面( http://jsbin.com/IJUGEDA/1 )时,该插件在Chrome和IE11中可以正常工作。

My guess is that the demo isn't linking to the JS correctly, or GitHub isn't serving the correct MIME Type. 我的猜测是该演示未正确链接到JS,或者GitHub未提供正确的MIME类型。 Taken from Chrome console: 从Chrome控制台获取:

Refused to execute script from 'https://raw.github.com/dynamicguy/tagcloud/master/src/tagcloud.jquery.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.

This would indicate that GitHub is serving the file as plain text rather than Javascript, and the browser doesn't execute it. 这表明GitHub将文件作为纯文本而不是Javascript来提供,并且浏览器不会执行它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM