$.get (".. /cart/cart_list.do ",
"Productid=" +productid,
function (data) {
alert (data);
}
);
Post
$.post (".. /cart/cart_list.do ",
"Productid=" +productid,
function (data) {
alert (data);
}
);
The post is the same as get format
Ajax
url=__ctx+ "/maintenance/onceequipment/tdjxdequipment/dialoggltxfsdsend.ht";
var params ={
"IDs": Arrids,
"ID": ID
};
$.ajax ({
"url": URL,
"Type": "Post",
"Async": true,
"Data":p Arams,
"DataType": "JSON",
"Success": function (data) {
if (data== ' true ') {
$.ligerdialog.success ("Operation succeeded", "hint Message", function (RTN) {
if (RTN) {
Refresh Parent Class Window
try{
Getparentwindow (). Refreshlefttree ();
}catch (e) {}
Self.location=document.referrer;
}
});
}else{
$.ligerdialog.err ("Prompt Message", "Failed!", "Operation failed");
Refresh Parent Class Window
try{
Getparentwindow (). Refreshlefttree ();
}catch (e) {}
Self.location=document.referrer;
}
}
});
jquery's ajax,get,post asynchronous request simple Code template