js -前后端交互开源接口

2021/4/23 18:58:26

本文主要是介绍js -前后端交互开源接口,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

接口地址

eg:https://api.apiopen.top/getWangYiNews

一、平台内所有的接口

[
    "/test",
    "/loginUser",
    "/userFeedback",
    "/registerUser",
    "/singlePoetry",
    "/searchAuthors",
    "/searchPoetry",
    "/likePoetry",
    "/recommendPoetry",
    "/getSongPoetry",
    "/getTangPoetry",
    "/poetryFull",
    "/poetryFullDetails",
    "/getWangYiNews",
    "/getImages",
    "/deleteUser",
    "/login",
    "/updateUser",
    "/register",
    "/apiJson",
    "/searchMusic",
    "/musicBroadcasting",
    "/musicBroadcastingDetails",
    "/musicDetails",
    "/musicRankings",
    "/musicRankingsDetails",
    "/developerUpdateKey",
    "/getFeedback",
    "/deleteFeedback",
    "/developerLogin",
    "/developerRegister",
    "/EmailSearch",
    "/getAllUrl",
    "/json",
    "/getSingleJoke",
    "/getJokeUserInfo",
    "/getJoke",
    "/getJokeComment",
    "/error",
    "/videoHomeTab",
    "/videoRecommend",
    "/videoCategory",
    "/videoCategoryDetails",
    "/videoDetails",
    "/todayVideo"
]

二、以jquery请求接口为例

function getData(){
	$.post("https://api.apiopen.top/getWangYiNews",{
		page:1,
		count:15
	},function(data,status){
		console.log(data);
	})
}

三、成功返回数据
在这里插入图片描述



这篇关于js -前后端交互开源接口的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程