About WeChat Mini Programs's request

PC looks normal, but there is a problem with the preview of the real phone. What"s wrong with the successful request but the wrong callback function type?

Mar.30,2021

this should be what method is incompatible after the project is packaged, you can pay attention to the part of the code related to 'forecast'. According to the current information, you can only judge so much


this problem is due to the fact that I spliced the city name in the request weather interface. If you can write the page directly, Mini Program needs to use encodeURIComponent to transfer the city name.

Menu