<select class="select" id="serverName">
</select>
<script id="server" type="text/x-jquery-tmpl">
<option value="">请选择</option>
{{each(i,item) list}}
<option value="${item.id}">${item.dp_name}</option>
{[/each}}
</script>
<script src="js/jquery.tmpl.min.js"></script>
<script type="text/javascript">
<script src="js/jquery.js"></script>
<script src="../home/js/dateformat.js"></script>
<script type="text/javascript">
function load(){
success:function(response){
$("#server).tmpl(response).appendTo("#serverName");//把2个id带入里面 ,response就是后台返回的值,
}
}