在Windows 8和8.1中使用时,使用vb.net创建读卡器软件无法读取和写入图像并显示错误消息

时间:2015-11-19 16:24:43

标签: vb.net dll

function saveData(e) {
    e.preventDefault();   //1.stop default behaviour of button
    var address = document.getElementById("txtAddress").value;  
    resolveAddress(address,
        function(results) {
            document.getElementById("txtLat").value = results[0].geometry.location.lat();
            document.getElementById("txtLng").value = results[0].geometry.location.lng();
            document.getElementsByTagName('form')[0].submit(); //2.resume form submit
        },
        function(status) {
            console.log('An error occured while resolving an address');
        });
}

function resolveAddress(address,success,error) {
    var geocoder = new google.maps.Geocoder();
    geocoder.geocode({ "address": address }, function (results, status) {
        if (status === google.maps.GeocoderStatus.OK) {
            success(results);
        } else {
            error(status);
        }
    });
}

0 个答案:

没有答案