摘要: Metro风格应用程序定位其实很简单,分2步1.开启定位功能,找到项目文件package.appxmanifest,双击打开,找到功能(features)选项卡>勾选 位置(location),保存。2.使用JS异步定位函数 var geolocator = Windows.Devices.Geolocation.Geolocator(); geolocator.getGeopositionAsync().done(function (position) { var lat = position.coordinate.l... 阅读全文
posted @ 2012-07-04 13:32 visi 阅读(963) 评论(1) 推荐(0) 编辑