The following methods are mobile-specific methods on the FR object .
location
Method | location(function) | It is used to realize the positioning function and obtain the latitude and longitude, which can be used in https, enterprise WeChat, and DingTalk |
---|---|---|
Parameter | function(status, message){...} | - |
Return value | - | status: whether the positioning is successful, string
|
Example | Get the geographic location, return the latitude and longitude successfully, and return the error message if it fails:
| |
Application example | Click the button to get the latitude and longitude and then fill in the corresponding cells. See the implementation method: [App] JS to get the current geographic location | |
Mobile | Support mobile |
Mobile.getDeviceInfo
Method | Mobile.getDeviceInfo() | Get device information |
---|---|---|
Parameter | - | - |
Return value | DeviceInfo: { Model: String, DeviceID: String } | DeviceInfo: Json object with two properties Model: device model, DeviceID: device unique id |
Example | Get device information and print:
| |
Application example | View device information on the mobile terminal, see the implementation method: [App] JS Get mobile device information | |
Mobile | App only |