在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:wdi-sg/tv-browser开源软件地址:https://github.com/wdi-sg/tv-browser开源编程语言:HTML 53.0%开源软件介绍:TV BrowserUse the TV Maze API docs to build a single-page app that allows a user to search TV shows. The documentation lists the various endpoints that the TV Maze development team has made available. Identify which endpoint(s) would most useful for your TV show searching app. Try clicking on the URL examples for each endpoint to see the structure of the JSON data at that endpoint. Each of the API's endpoints may have differently structured JSON responses. When testing out the API's endpoint URLs, you will want to install JSON Formatter to make the JSON responses more readable. To search the TV Maze API use this URL: http://api.tvmaze.com/search/shows?q=girls The search query of the URL is the serarch term that the user entered. The response to the request will be an array of objects. When you recieve the response you should render data from each object in a loop. CORSYour browser may give you an error regarding a Cross Origin Request, depending on your operating system and version of chrome. You can install this chrome extension to get rid of it: MVPUse the input to get the search term from the user. Display the results in the dom. FurtherWhen you get the results, fill in the select element with an option element for each result FurtherAttach an event listener to the select. When the user selects an option make another AJAX call. Use the response of that AJAX call to render the individual show they requested Full App
Take a look:http://ga-wdi-exercises.github.io/tv-browser/ FurtherDisplay in the DOM all of the data given to you for a particular show. FurtherAdd a link to the FurtherMake each cast person clickable. When the user clicks on that person make an AJAX request for the person. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论