日期:2014-05-16 浏览次数:20645 次
function deleteAd() {
if (confirm('是否删除选中的信息?')) {
var inputCode = document.getElementsByTagName("input");
for (var i = 0; i < inputCode.length; i++) {
if (inputCode[i].type == "checkbox") {
if (inputCode[i].checked) {
var adID = inputCode[i].value;
Ext.Ajax.request({
method: 'GET',
params: { adID: adID },
url: 'Handler1.ashx',
success: function (response, opts) {
alert("成功!");
},
failure: function (response, opts) {
alert("失败!")
}
})
}
}