- Ajax请求
var IpAndPort = 'http://' + window.location.hostname +
':' + window.location.port;
$.ajax({
url: IpAndPort + "/sys/xxx",
type: "POST",
data: {sysId: sysId},
dataType: "json",
success: function (result) {
},
error: function (request, errorType, errorMsg) {
alert("删除失败");
}
})
- 获取下拉框的多个选中数值
var array = [];
$('#system_list option:selected').map(function () {
array.push($(this).val());
});
for (var i = 0;i < array.length;i ++){
console.log(array[i]);
}
网友评论