problem description
normally used in browsers, Wechat developer tool sentence reported such an error
index.js?8f9b:1 Error while parsing the "allow" attribute:" geolocation" is an invalid feature name.
the environmental background of the problems and what methods you have tried
I Baidu has no solution at all
related codes
/ / Please paste the code text below (do not replace the code with pictures)
plugin: [{
enableHighAccuracy: true,//:true
timeout: 100, //10:
maximumAge: 0, //0:0
convert: true, //:true
showButton: true, //:true
buttonPosition: "RB", //:"LB"
showMarker: false, //:true
showCircle: true, //:true
panToLocation: true, //:true
zoomToAccuracy:true,//:f
extensions:"all",
pName: "Geolocation",
events: {
init(o) {
// o
o.getCurrentPosition((status, result) => {
console.log(result)
if (result && result.position) {
self.lng = result.position.lng;
self.lat = result.position.lat;
self.center = [self.lng, self.lat];
self.loaded = true;
self.$nextTick();
}
});
}
}
}]
what result do you expect? What is the error message actually seen?