上次更新時間
2022年1月11日
|
亦適用於 ColdFusion
Getting current position
You can get the device’s current position using the getCurrentPosition() function.
Method summary
getCurrentPostion(options)
- returns – Returns a Position object containing the location information
- params
- Geolocation Options
For instance,
<cfset curpos = cfclient.geolocation.getCurrentPosition()> |
Example