|
var Model = function(){
this.callParent();
this.tude = "";
};
function(){
var me = this;
//获取经纬度数据
navigator.geolocation.getCurrentPosition(successCallback,errorCallback,null,"bd09ll");
justep.Util.hint(me.tude);
if (this.operator == "new") {
resourceData.newData({
"defaultValues" : [ {
"fID" : justep.UUID.createUUID(),
"fDate": new Date(),
"fTude": me.tude
} ]
});
}
//获取坐标成功回调函数
function successCallback(data){
alert("经度:"+data.coords.longitude +"\n"
+"纬度:"+data.coords.latitude +"\n"
+"坐标系:"+data.coorType
);
me.tude = "经度:"+data.coords.longitude + "纬度:"+data.coords.latitude;
};
以上是部分代码,为什么传不进去?求大神解答 |
|