I used H5 to obtain the current coordinates, and then called the API of Baidu Maps. I found that there was an error in the display on the mobile phone, about 1000 meters. I checked the information and said that this is normal. I must convert the GPS coordinates into For the coordinates of Baidu Map, I looked at the API and found that there are ready-made methods, but the Nan that was printed out in the end, I still don’t know what happened, so I went directly to the picture.
回掉函数的值不是point,而是一个data,再取一下: data.points[0]