Home > Net >  Web forms to delete functions but not out the window?
Web forms to delete functions but not out the window?

Time:01-04

<script SRC="https://bbs.csdn.net/topics/jquery-3.5.1.min.js" & gt; </script>
<script>
The function del (id) {
If (confirm (" is sure to delete ")) {
$. Ajax ({
Url: "del. Ashx,"
Data: {" Id ": Id},
Type: "post",
DateType: "Text",
Success: the function (res) {
If (res & gt; 0 {
Alert (" delete success ");
Location. A href="https://bbs.csdn.net/topics/Furniture.aspx";
;
} else {
Alert (" delete failed ");
}
}
})
}
}
</script>

CodePudding user response:

In your
 if (res & gt; 0 {
here to set breakpoints, use vs debug, if you don't use vs debugger, or you have not interrupted by vs debugger (the call stack) debugging, don't believe he will be independent programming,

CodePudding user response:

To set breakpoints, step through, using a debugger to learn programming knowledge, rather than by reading books, rote learning to learn programming,

CodePudding user response:

Res, ditto to set breakpoints, use the browser debugging,
  • Related