jQuery ajax success error
var url = "http://ws.geonames.org/countryCode"; //25.302131077305933,121.5032958984375 fail var getData = 'lat='+ '49.03' +"&lng="+'10.2'; $.ajax({ type: "Get", url: url, data: getData, success: function(msg){ // alert( "Data Saved: " + msg ); update_info = document.getElementById('info') ; update_info.innerHTML = 'success'+msg; }, error: function(msg){ // alert( "Data Saved: " + msg ); update_info = document.getElementById('info') ; update_info.innerHTML = 'fail'; }
沒有留言:
張貼留言
注意:只有此網誌的成員可以留言。