The function toEdit (ID) {
$. Ajax ({
Type: "GET",
Url: "& lt; %=basePath % & gt; XXX/XXX? ID="+ ID,
Data: {},
DataType: 'json,
Success: the function (data) {
?????
}
})
Click & lt; A> Label after trigger toEdit
An ajax request
The question now is:
Is there a way by clicking & lt; A> Button to jump to the background to get the url and then trigger the ajax and dived into the url (such as the url: www.baidu.com)
CodePudding user response:
A train of thought I don't know right, take me to this address after giving & lt; A> Tags for assignment, triggering a labelCodePudding user response:
A href="javascript: void (0);" &western nclick="toEdit (' ${id} ')"CodePudding user response:
The location. The href=https://bbs.csdn.net/topics/data.url;Data. The url from the background to get the url
CodePudding user response:
Var dataArray=eval (data);E.h ref [0]=https://bbs.csdn.net/topics/dataArray. Url;
The search on the net, run the unresponsive
Ajax can see breakpoint