87,904
社区成员
发帖
与我相关
我的任务
分享
<script type="text/javascript">
$(function() {
$("#btnSQ").click(function() {
debugger;
var inputs = document.getElementsByTagName("input");
for (var i = 0; i < inputs.length; i++) {
if (inputs[i].type == "checkbox" && inputs[i].checked) {
var brandCouponID = inputs[i].val();
$.ajax({
type: "Post",
url: ajaxPath + "?__Action=BrandCouponInsert",
data: { brandCouponID: brandCouponID },
dataType: "json",
success: function(data) {
},
error: function(err) {
}
});
};
};
});
});
</script>
<script type="text/javascript">
$(function() {
$("#btnSQ").click(function() {
debugger;
var inputs = document.getElementsByTagName("input");
for (var i = 0; i < inputs.length; i++) {
if (inputs[i].type == "checkbox" && inputs[i].checked) {
var brandCouponID = inputs[i].val();
.ajax({
type: "Post",
url: ajaxPath + "?__Action=BrandCouponInsert",
data: { brandCouponID: brandCouponID },
dataType: "json",
success: function(data) {
},
error: function(err) {
}
});
};
};
});
});
</script>
这是运行后的源代码