The back-end provides the front-end restful interface. How does the front-end operate? I want a specific case. Can you provide it?
The case is no, here comes the case:
//backend interface /** *post/get * parameter value 1 2 3 * return data type json\xml\html **/ function resful_1() { bracket $.ajax({ type: "post/get", url: "admin/user/resful_1", data: {id:id,name:name}, success: function (data) { if(data.state==200){ alert(data.msg); }else{ Alert ('request failed' plus data.msg); bracket bracket });
Just like the common interface, the agreement is good.Url address、Request mode、Request parameters、Return value type、Return value tagJust wait