Solution to jshttpget data that is too large and cannot be fully received: You can let the backend type the data directly to see if the data is complete. You can also use the developer tools of the Chrome browser to capture the packet. Is the data obtained complete?
How does JS send HTTP requests? First, prepare an area in the HTML document to display the content returned by the request, and bind a method to the onload event. Then we create an XMLHttpRequest request object, and then process the onload method of xmlhttprequest, as shown in the figure below, to determine the returned status. Is the code 200? 200 represents success. Next, call the open method of the request object, set the request method to get, and set the request URL. Then call the send method of the request object to execute the request sending. Finally, process the request and return success. Finally, as a method of assigning values ??to the display area, JS mainly uses the XmlHttpRequest object to send HTTP requests, which has also been encapsulated by many third parties.