PhoneGap开发必备PhoneGapMobileApplicationDevelopmentCookbookPreface1Chapter1:MovementandLocation:UsingtheAccelerometerandGeolocationSensors7Introduction7Detectingdevicemovementusingtheaccelerometer8Adjustingtheaccelerometersensorupdateinterval12Updatingadisplayobjectpositionthroughaccelerometer