Sudden jQuery Failure

So I've logged onto a client's site this morning (it's an intranet that monitors vehicle usage etc). jQuery is a decent part of the site but all of a sudden it's failed with these console errors: > jquery.js:1Uncaught SyntaxError: > Unexpected token : > > ReferenceError: jQuery is not defined > > ReferenceError: $ is not defined The only thing that I've changed in the past week is adding a charset and altering the doctype to: I think this might be the problem but removing the header() and DOCTYPE doesn't fix the issue. Any ideas what could be going on? Edit 1: Chrome Inspector shows nothing has failed to load. Edit 2: Head Section Intranet
Check out Firebug. Is jQuery still getting loaded? Also remove the line break between your PHP code and the doctype declaration

以上就是Sudden jQuery Failure的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准