RT, using jQuery Ajax to request data occasionally appears to display JSON files directly on the web page. Normally, the required JSON data can be obtained and processed in a series of ways, but occasionally, the JSON data will appear directly on the web page.
I would like to ask what may be the cause of this situation.
No judgment when data.data.code = = 0
When data. data. code = 0, don’t you just execute else directly? Data is response on the server side. It should have nothing to do with printing.
Do you know the reason? I just learned, but I also met this situation. After a long time of searching, I didn’t find the answer. I feel that many blogs are the same, without innovation, and it’s useless to waste a lot of time reading. Fortunately, I saw the landlord. I begged for advice. ???