【问题标题】:Unable to parse jQuery script lines无法解析 jQuery 脚本行
【发布时间】:2013-02-20 04:26:50
【问题描述】:

我遇到了几行 jQuery 共存的问题。我相信它们的格式不正确,因为 Blogger 不会让我保存我的代码。目前我有:

<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' type='text/javascript'/>
<script type='text/javascript'>

<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js' type='text/javascript'/>
<script>
var $jq = jQuery.noConflict();
</script>

<script src='http://blogger-related-posts.googlecode.com/files/jquery.related-posts-widget-2.0.min.js' type='text/javascript'/>

我正在尝试添加this 脚本,但我无法保存我的模板。 This 是我的网站。提前致谢!

【问题讨论】:

    标签: jquery xml parsing blogger


    【解决方案1】:

    关闭脚本标签

     <script src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' type='text/javascript'/></script>
    
    
    <script src='https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js' type='text/javascript'/></script>
    <script>
    var $jq = jQuery.noConflict();
    </script>
    
    <script src='http://blogger-related-posts.googlecode.com/files/jquery.related-posts-widget-2.0.min.js' type='text/javascript'/></script>
    

    【讨论】:

    • 我仍然收到错误“解析 XML 时出错,第 64 行,第 106 列:元素类型“head”必须由匹配的结束标记“”终止。”。第 64 行是“
    • @MarioParra 你如何写你的&lt;head&gt; 部分?你能在这里复制你的head部分吗
    • 这是我的 部分。感谢您查看它pastebin.com/Em2riFJG
    • 我已经多次检查了我的 部分,但我仍然无法确定哪些内容格式不正确。 Blogger 给了我同样的错误
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-02-21
    • 1970-01-01
    • 2016-05-01
    • 2019-07-28
    • 2021-08-18
    • 2015-05-19
    相关资源
    最近更新 更多