Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ibm mobilefirst IBM Worklight 6.0-地理位置API文档_Ibm Mobilefirst_Worklight Geolocation - Fatal编程技术网

Ibm mobilefirst IBM Worklight 6.0-地理位置API文档

Ibm mobilefirst IBM Worklight 6.0-地理位置API文档,ibm-mobilefirst,worklight-geolocation,Ibm Mobilefirst,Worklight Geolocation,我正在使用WL.Device.GeoAPI。实际上,只有WL.Device.Geo.acquirePosition。此处记录的方法: 对于onSuccess方法,它声明: 获取位置时调用的回调函数 成功地该位置作为参数传递给回调函数 功能 是否记录了传递给回调函数的参数?例如,我可以使用JSON.stringify方法来获取内容,但这种情况是我在API文档中经常遇到的,我不知道它是否有文档记录,或者是否有更详细的API文档。回调收到一个W3C position对象()。时间戳始终是自1970年1

我正在使用
WL.Device.Geo
API。实际上,只有
WL.Device.Geo.acquirePosition
。此处记录的方法:

对于onSuccess方法,它声明:

获取位置时调用的回调函数 成功地该位置作为参数传递给回调函数 功能


是否记录了传递给回调函数的参数?例如,我可以使用
JSON.stringify
方法来获取内容,但这种情况是我在API文档中经常遇到的,我不知道它是否有文档记录,或者是否有更详细的API文档。

回调收到一个W3C position对象()。时间戳始终是自1970年1月1日以来经过的毫秒数(W3C规定使用DOMTimestamp-在某些平台上,这是以毫秒数实现的,在其他平台上,它是一个日期对象。WL.Device.Geo.acquirePosition和使用WL.Device.startaquisition时对设备上下文的更新始终使用前者)。

此外,文档将得到改进。谢谢@Javier。