Home > front end >  Questions about ajax, click on the button does not respond
Questions about ajax, click on the button does not respond

Time:09-20

I got two simple button, but click on the no response, what's the problem? How to solve?
Beginner's request

CodePudding user response:

Check whether the background under normal receiving data and return data, can put the received data to print

CodePudding user response:

reference 1st floor qq1250947732 response:
test for a normal receiving data and return data under the background, you can put the received data to print

Tried, no, and I am here is a simple button aaa, also have no reaction, I suspect is js problem, but I have another JSP

CodePudding user response:

reference 1st floor qq1250947732 response:
test for a normal receiving data and return data under the background, you can put the received data to print

It seems to be less than the background,,,

CodePudding user response:

The first function between $and ajax in less (.)
The second function of alert spelling mistake

CodePudding user response:

references 4 floor sky waves reply:
$between ajax and less in the first function (.)
The second function of alert spelling error

Ajax point me up, is also no response

CodePudding user response:

The
maccha reference 5 floor? Response:
Quote: refer to 4th floor sky waves reply:
$and ajax in the first function between less (.)
The second function of alert spelling error

Ajax point me up, also have no reaction

You two alert words are misspelled

CodePudding user response:

references 4 floor sky waves reply:
$between ajax and less in the first function (.)
The second function of alert spelling error

Thank you, functions also change back, the first button or not, the second

CodePudding user response:

cited the 6th floor sky wave response:
Quote: maccha reference 5 floor? Response:

Quote: refer to 4th floor sky waves reply:
$between ajax and less in the first function (.)
The second function of alert spelling error

Ajax point me up, also have no reaction

You two alert words are misspelled

Changed, the first button or less than the background

CodePudding user response:

Success spelling error

CodePudding user response:

references 9/f, the sky wave response:
success spelling error

This also changed back,,,

CodePudding user response:

Press the F12 key to open the browser console and see what error message

CodePudding user response:

11 references, the sky wave response:
press the F12 key to open the browser console and see what error message

Console without any response, I have been looking for an error, but I can't find any error

CodePudding user response:

In jQuery
. Click (handler (eventObject)) return: jQuery
Description: for JavaScript "click" event binding a processor, or "click" event trigger element,

$(function () {
$(" # "button). Cliick (function () {
$. Ajax ()
});
$(" input [value=https://bbs.csdn.net/topics/aaa] "). Click (function) {
The console. The log (" aaa ");
};
})
  •  Tags:  
  • Ajax
  • Related