Я новичок в jQuery и создал простой index.html с еще более простым скриптом. Тем не менее, библиотека JQuery, кажется, не загружались в моей Firebug консоли я получаю следующее сообщение об ошибке:Библиотека jQuery не загружается
TypeError: $ is not a function
$(document).ready(function() {
Ниже мой index.html:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Online Calorie Tracker and Analyzer</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<script src="http//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="js/bootstrap.js"></script>
<script src="initialize.js"></script>
</head>
<body>
<div class="container">
<h1>Calorie Tracker and Analyzer</h1>
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<ul class="nav">
<li class="active"><a href="index.html">Home</a></li>
<li><a href="#">Track Food</a></li>
<li><a href="#">Analyze Food</a></li>
</ul>
</div>
</div>
</div>
<div class="hero-unit">
<h1>A healthy you begins with tracking and analysis</h1>
<p>10 out of 10 doctors agree. Losing weight is healthy. With our online calorie tracker and analyzer, the power is in your hands!</p>
<button class="btn btn-danger" id="btn1">Get Started</button>
</div>
</div>
<body>
<html>
А вот скрипт JQuery:
$(document).ready(function() {
alert("hello");
});
Любая помощь приветствуется!
Получил минуту, чтобы увидеть разницу даже после того, как вы указали ее здесь. Чтобы уточнить, я бы сказал, что исходный скрипт src отсутствует в двоеточие после http – nvuono