未验证 提交 801e82fe 编写于 作者: O openharmony_ci 提交者: Gitee

!13036 修改示例代码错误,删除locationEventListener

Merge pull request !13036 from 刘彬俊/OpenHarmony-3.1-Release
......@@ -481,7 +481,7 @@ getCurrentLocation(request?: CurrentLocationRequest) : Promise<Location>
```
var requestInfo = {'priority': 0x203, 'scenario': 0x300,'maxAccuracy': 0};
locationEventListener.getCurrentLocation(requestInfo).then((result) => {
geolocation.getCurrentLocation(requestInfo).then((result) => {
console.log('current location: ' + JSON.stringify(result));
});
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册