Joke Collection Website - Talk about mood - How JS calls API interface
How JS calls API interface
The materials to be prepared are: computer, html editor and browser.
1. First, open the html editor, create a new html file, such as index.html, and introduce jquery.
2. In index.html
$.get ('request address', function (b) {
document . body . innertext = b;
});
3. The browser runs the index.html page. At this time, the API interface is called through the development tool of F 12.
- Previous article:What does sofa mean?
- Next article:Where do people work?
- Related articles
- Talk about the mood after drunkenness
- See you in October. Tell me about it.
- Funny words to wish friends out of singles, funny mood quotes to say about being single during Chinese Valentine’s Day
- If you are in a bad mood, comfort me. If you are in a bad mood, say nothing.
- Sixty sentences from emo to unintentional work
- If I die, sad diary
- How to calculate the cup?
- Village rules and regulations
- The sadness of a migrant worker, there is such a boss, when I offered to resign, not only did not give money, but also reduced the price by two yuan. ...
- Sad sentences about smoking