Created
December 26, 2012 21:02
-
-
Save masaru-b-cl/4383142 to your computer and use it in GitHub Desktop.
「Backbone.js:別ファイル定義のViewではelの定義にjQueryオブジェクトを使ってはいけない」のサンプル用index.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title></title> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.js"></script> | |
<script type="text/javascript" src="underscore-1.4.3.js"></script> | |
<script type="text/javascript" src="backbone-0.9.9.js"></script> | |
<script type="text/javascript" src="hoge.js"></script> | |
<script type="text/javascript" src="foo.js"></script> | |
<script type="text/javascript" src="bar.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function () { | |
new Hoge({}); | |
new Foo({}); | |
new Bar({ el: $("#bar") }); | |
}); | |
</script> | |
</head> | |
<body> | |
<div id="hoge"></div> | |
<div id="foo"></div> | |
<div id="bar"></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment