Created
June 24, 2012 22:59
-
-
Save rightson/2985378 to your computer and use it in GitHub Desktop.
Backbone JS View Env
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 lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Learning About Backbone.js Views</title> | |
<style type="text/css"> | |
#container{ padding:20px; border:1px solid #333; width:400px; } | |
#list-template{ display:none; } | |
</style> | |
</head> | |
<body> | |
<div id="container"> | |
<button>Load</button> | |
<ul id="list"> | |
</ul> | |
</div> | |
<div id="list-template"> | |
<li><a href=""></a></li> | |
</div> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script type="text/javascript" src="http://documentcloud.github.com/underscore/underscore-min.js"></script> | |
<script type="text/javascript" src="http://documentcloud.github.com/backbone/backbone-min.js"></script> | |
<script type="text/javascript"> | |
/* 接下來的 javascript code 會寫在這裡 */ | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment