Because the results are returned in json format and are not easily identified at a glance, the results are processed in a simple way for convenience. Next we will introduce the processing method, if you are interested, refer to the following simple interface description page written by server developers at ordinary times after the background is written, which is similar:
The Code is as follows:
Because the results are returned in json format and are not easily identified at a glance, the results are simply processed for convenience:
1. Because the page of returned results cannot be controlled, the request is intercepted directly and re-sent in ajax mode.
2. format the returned json results. Non-json results are directly displayed.
Note: chromium in ubuntu seems to be a little different in terms of Handling overflow, so the result container is a bit cool.
Example:
The Code is as follows: