let plugin = requirePlugin('routePlan');
let key = 'RO3BZ-***-H7FLS';//使用在腾讯位置服务申请的key
let referer = 'z**t';//调用插件的app的名称
let endPoint = JSON.stringify({ //终点
'name': '北京西站',
'latitude': 39.894806,
'longitude': 116.321592
});
wx.navigateTo({
url: 'plugin://routePlan/index?key=' + key + '&referer=' + referer + '&endPoint=' + endPoint
});
代码原样未动,就是运行突然报错如下:查不出原因,感觉莫名其妙,请大神指点迷津!
TypeError: t is not a function
at T (VM184 WAService.js:2)
at batchInjectComponents (VM184 WAService.js:2)
at ba.injectComponentsRecursively (VM184 WAService.js:2)
at Module.ga (VM184 WAService.js:2)
at Function.create (VM184 WAService.js:2)
at ir (VM184 WAService.js:2)
at VM184 WAService.js:2
at cr (VM184 WAService.js:2)
at Function.<anonymous> (VM184 WAService.js:2)
at Y.<anonymous> (VM184 WAService.js:2)(env: Windows,mp,1.05.2204180; lib: 2.19.6)
errorReport @ VM184 WAService.js:2
(anonymous) @ VM184 WAService.js:2
k @ VM184 WAService.js:2
(anonymous) @ VM184 WAService.js:2
Y.emit @ VM184 WAService.js:2
emit @ VM184 WAService.js:2
(anonymous) @ VM184 WAService.js:2
Y.emit @ VM184 WAService.js:2
emit @ VM184 WAService.js:2
(anonymous) @ VM184 WAService.js:2
(anonymous) @ VM184 WAService.js:2
c @ VM9 asdebug.js:1
l @ VM9 asdebug.js:1
(anonymous) @ VM9 asdebug.js:1
f @ VM9 asdebug.js:1
g @ VM9 asdebug.js:1
(anonymous) @ VM9 asdebug.js:1
_ws.onmessage @ VM9 asdebug.js:1
腾讯位置服务突然失效了,为什么?请大神指点迷津!