location

系统定位模块

api

  1. /**
  2. /*param(once:是否只定位一次(true,false))
  3. start(param,callback)

demo

  1. var location=weex.requireModule('location')
  2. var modal=weex.requireModule('modal')
  3. location.start({once:false},(res)=>{
  4. modal.alert({message:res})
  5. })