index.html
<html>
<head>
<script data-main="main" src="http://requirejs.org/docs/release/2.1.8/minified/require.js"></script>
</head>
<body></body>
</html>
main.js
requirejs.config({
paths: {
jquery: 'https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min'
}
});
define(['jquery'], function ($) {
console.log($);
});
Why does console.log
give me undefined?