日期:2014-05-16 浏览次数:20443 次
<div id="container">
<h1>Backbone demo</h1>
<div>
<input id="firstName" placeholder="First Name" />
<input id="lastName" placeholder="Last Name" />
<select id="city">
<option>New York</option>
<option>Los Angeles</option>
<option>Chicago</option>
<option>Houston</option>
<option>Philadelphia</option>
<option>San Francisco</option>
<option>Washington</option>
<option>Las Vegas</option>
</select>
<input id="job" placeholder="Job" />
<button id="add">Add new item</button>
</div>
<div>
<table id="dataList" style="border:solid 1px #aaa; border-collapse:collapse;">
<tr>
<th>Id</th>
<th>First Name</th>
<th>Last Name</th>
<th>City</th>
<th>Job</th>
<th>Action</th>
</tr>
</table>
</div>
</div>
&nbs