1$(document).ready(function(){ 2 // 使æ¤ç´¢ãã¿ã³ãæ¼ãã¨å¤é¨apiãå©ãå¦çãèµ°ãã 3 $(document).on('click', '#search_address_btn', function() { 4 $.getJSON('https://zipcloud.ibsnet.co.jp/api/search?callback=?', 5 { 6 zipcode: $('#zip_code').val() 7 } 8 ) 9 .done(function(data) { 10 if (!data.results) { 11 alert('該å½ã®ä½æãããã¾ãã'); 12 } else { 13 let result = data.results[0]; 14 $('#address').val(result.address1 + result.address2 + result.address3); 15 } 16 }).fail(function(){ 17 alert('å ¥åå¤ã確èªãã¦ãã ããã'); 18 }) 19 }) 20})
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.