vue.js
Code is used to embed nails in
h5 pages for micro applications.
dd.ready(() => {
alert(1)
dd.device.geolocation.get({
targetAccuracy: 200,
coordinate: 1,
withReGeocode: false,
useCache:true,
onSuccess:(result) => {
alert(JSON.stringify(result) + "1")
},
onFail:(err) => {
alert(JSON.stringify(err) + "2")
}
})
})
this is written in the mounted function
. First of all, dd.ready
will pop up 1
if executed first, and then pop up the error message
{"errCode": "7", "jsapi": "jsapi should be invoked after dd.ready callbacks"} 2
I don"t know if there is a problem or the other pop-up windows can be executed normally