1 2/** 3 * JavaScript å ±é颿° 4 * Javascriptç°å¢ä¸ã§å ±éã§æ±ããããªé¢æ°ç¾¤ 5 * 6 */ 7 8// 夿°ã®å¼·è±ªå¯¾ç 9if (typeof Convert === "undefined"){ 10 11 var Convert = function() 12 { 13 // ã³ã³ã¹ãã©ã¯ã¿ 14 }; 15 16 17 // åç¨®é¢æ° 18 19 /** 20 * getClassValue 21 * æå®ãããã¯ã©ã¹åãã飿³é åã§valueãè¿ã 22 * valueãè¨å®ããã¦ããªããã®ã¯é£æ³é åã¨ãã¦çæããªã 23 * 夿°[id] = value 24 * 25 * @param String class_name 26 * @return Array 27 */ 28 Convert.getClassValue = function(class_name) 29 { 30 var result = new Array(); 31 $("." + class_name).each( function(){ 32 if($(this).val() && $(this).attr("id")) { 33 result[$(this).attr("id")] = $(this).val(); 34 } 35 }); 36 37 return result; 38 } 39 40 /** 41 * setClassValue 42 * æå®ãããã¯ã©ã¹ã®idã®ã¿ã°ã«valueãæ¿å ¥ãã 43 * æå®ãããã¯ã©ã¹ã«idããªãå ´åã¯æ¿å ¥ããªã 44 * 45 * @param Array ary_value, String class_name 46 */ 47 Convert.setClassValue = function(ary_value, class_name) 48 { 49 $("." + class_name).each( function(){ 50 if(ary_value[$(this).attr("id")]) { 51 $(this).val(ary_value[$(this).attr("id")]); 52 } 53 }); 54 } 55 56}
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.