javascript - 杂散开始标记脚本

标签 javascript html

我正在尝试从 http://www.wowhead.com/hearthstone/tooltips 获取工具提示在我的网站上工作,但它不起作用,所以我尝试了 W3C 验证程序的答案,但我收到以下错误:

错误第 88 行,第 84 列:杂散开始标记脚本。 …//static.wowhead.com/widgets/power.js">var wowhead_tooltips =...

这是我那部分的代码:

<script type="text/javascript" src="http://static.wowhead.com/widgets/power.js"> </script>

<script> var wowhead_tooltips = { "colorlinks": true, "iconizelinks": true, "renamelinks":       true } </script>

它在 <html> 内和 <head>标签。

最佳答案

当你在</body>之外的东西时,验证器会给出这个错误.

只要把你的脚本标签移到<body>里面, 或者将它们保存在 <head> 中.

关于javascript - 杂散开始标记脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19958667/

相关文章:

html - 当标题变大或变小时对齐 woocommerce 价格

javascript - 如何在 Mustache.js 完成渲染模板时运行回调

javascript - sapui5 从属性文件中读取键值对

javascript - 在 JavaScript 中,!function(){}() 相对于 (function () {})() 的优势是什么?

jquery - 如何使用 jQuery 获取进度条的当前值?

php - 使用 PDO 将数组数据插入数据库

javascript - 从 iframe 内部关闭 Bootstrap 模式

Javascript:实现 100% 防篡改私有(private)变量的方法?

html - 在让我的 margin-top 与跨浏览器兼容时遇到问题/

html - iFrame 宽度 - 100% 高度 - 100%