通过Ajax方式绑定select选项数据
ion>
</select>在JavaScript代码段中写入以下ajax取数据并绑定数据的过程$.ajax({
type : "post",
url : "api/department/list", //此次url改为真正需要的url
success : function(data, status) {
$.each(data, function(index, item) {
$("#select").append( //此处向select中循环绑