1 2/** 3 * 4 * @param {string} sendValue // GETã®ãªã¯ã¨ã¹ã 5 * @param {string} id // çµæã表示ããå 6 */ 7function enegaeruAjax( sendValue, id ) { 8 9 console.log("[sendValue]:"+sendValue); 10 console.log("[id]:"+id); 11 sendValue = sendValue + "&id=" + id.slice(1); 12 console.log("[sendValue+id]:"+sendValue); 13 14 // 1.$.ajaxã¡ã½ããã§éä¿¡ãè¡ãã¾ãã 15 $.ajax({ 16 type: "GET", // 使ç¨ããHTTPã¡ã½ãã 17 url:'./enegaeru_api.php', // éä¿¡å ã®URL 18 data: sendValue, // éä¿¡ãããã¼ã¿ 19 dataType: "text", // å¿çã®ãã¼ã¿ã®ç¨®é¡ 20 timespan:1000 // éä¿¡ã®ã¿ã¤ã ã¢ã¦ãã®è¨å®(ããªç§) 21 22 // 2. doneã¯ãéä¿¡ã«æåããæã«å®è¡ããã 23 // 弿°ã®dataã¯ãéä¿¡ã§åå¾ãããã¼ã¿ 24 // 弿°ã®textStatusã¯ãéä¿¡çµæã®ã¹ãã¼ã¿ã¹ 25 // 弿°ã®jqXHRã¯ãXMLHttpRequestãªãã¸ã§ã¯ã 26 }).done(function(data, textStatus, jqXHR){ 27 $(id).html(data); 28 $("#result2").text(textStatus); 29 $("#result3").text(jqXHR); 30 31 // 3. failã¯ãéä¿¡ã«å¤±æããæã«å®è¡ããã 32 }).fail(function(jqXHR, textStatus, errorThrown ){ 33 $("#result1").text(jqXHR.status); //ä¾ï¼404 34 $("#result2").text(textStatus); //ä¾ï¼error 35 $("#result3").text(errorThrown); //ä¾ï¼NOT FOUND 36 37 // 7. alwaysã¯ãæå/失æã«é¢ãããå®è¡ããã 38 }).always(function(){ 39 // $("#result4").text("complete"); 40 $('#overlay').hide(); 41 }); 42} 43 44function prefAjax( zipcode ) { 45 46 console.log("[zipcode]:"+zipcode); 47 48 // 1.$.ajaxã¡ã½ããã§éä¿¡ãè¡ãã¾ãã 49 $.ajax({ 50 type: "GET", // 使ç¨ããHTTPã¡ã½ãã 51 url:'./pref_api.php', // éä¿¡å ã®URL 52 data: zipcode, // éä¿¡ãããã¼ã¿ 53 dataType: "text", // å¿çã®ãã¼ã¿ã®ç¨®é¡ 54 timespan:1000 // éä¿¡ã®ã¿ã¤ã ã¢ã¦ãã®è¨å®(ããªç§) 55 56 // 2. doneã¯ãéä¿¡ã«æåããæã«å®è¡ããã 57 // 弿°ã®dataã¯ãéä¿¡ã§åå¾ãããã¼ã¿ 58 // 弿°ã®textStatusã¯ãéä¿¡çµæã®ã¹ãã¼ã¿ã¹ 59 // 弿°ã®jqXHRã¯ãXMLHttpRequestãªãã¸ã§ã¯ã 60 }).done(function(data, textStatus, jqXHR){ 61 // $("#pref").val(data); 62 setData(data); 63 $("#result2").text(textStatus); 64 $("#result3").text(jqXHR); 65 66 // 3. failã¯ãéä¿¡ã«å¤±æããæã«å®è¡ããã 67 }).fail(function(jqXHR, textStatus, errorThrown ){ 68 $("#result1").text(jqXHR.status); //ä¾ï¼404 69 $("#result2").text(textStatus); //ä¾ï¼error 70 $("#result3").text(errorThrown); //ä¾ï¼NOT FOUND 71 72 // 7. alwaysã¯ãæå/失æã«é¢ãããå®è¡ããã 73 }).always(function(){ 74 // $("#result4").text("complete"); 75 $('#overlay').hide(); 76 }); 77} 78function setData(data) { 79 $('#pref').val(data); 80 setPref(); 81}
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.