有没有办法通过
Windows Phone 7上的
Javascript访问Accelerometer数据?
iPhone有这个演示示例(在Safari移动设备中很可爱):
http://hakim.se/experiments/css/holobox/
iPhone Javascript的部分如下:
if (navigator.userAgent.match(/(iPhone|iPad|iPod|Android)/i)) { addEventListener("orientationchange",onOrientationChange,false); addEventListener("devicemotion",onMotionChange,false); }
我只是想知道你是否也可以访问WP7上的数据.
干杯!
解决方法
不,这是不可能的.即使在芒果.