Home > front end >  Somebody gave me a webapi interface want me to write web calls, excuse me how to call
Somebody gave me a webapi interface want me to write web calls, excuse me how to call

Time:04-09

Somebody gave me a webapi interface to I write web call, could you tell me how to call it.

CodePudding user response:

Premise is to use the jquery library, interface points get or post

//code
$.get (" http://191.11.11.11/api/1.php ", function (data, status) {
console.log(data);//data is the data
});

CodePudding user response:

XMLHttpRequest
  • Related