IBM Developer is your one-stop location for getting hands-on training and learning in-demand skills on relevant technologies such as generative AI, data science, AI, and open source.
MULTICOL. ã¯HTMLã§éèªã®ãããªç¾ãã段çµã¿ã¬ã¤ã¢ã¦ããå®ç¾ããã ãã®ã·ã³ãã«ãªjQueryãã©ã°ã¤ã³ã§ãã ãã¡ãããæ¥æ¬è£½ã®ãã©ã°ã¤ã³ãªã®ã§æ¥æ¬èªããããã«æ®µçµã¿ã«ãã¾ãã ä¸ ææ¥ã®æ¥æ®ã§ãã åã®è¥¿ã®éã®ä¸ã«ãã¼ããã空ãä»°ãã§ãããä¸äººã®è¥è ãããã¾ããã è¥è ã¯åãæåæ¥ã¨ãã£ã¦ãå ã¯éæã®æ¯åã§ããããä»ã¯è²¡ç£ãè²»ãªèº«åã«ãªã£ã¦ããã®ã§ãã ä½ãããã®é æ´é½ã¨ããã°ã天ä¸ã«ä¸¦ã¶ãã®ã®ãªããç¹æã¯ãã¾ãã§ç»ã®ãããªç¾ããã§ãã ãããæåæ¥ã¯ç¸å¤ãããéã®å£ã«èº«ãåãã¨æãç¨ããããã«ç½ãæµ®ãã§ããã®ã§ãã ãæ¥ã¯æ®ããããè ¹ã¯æ¸ããããã®ä¸ããã©ãã¸è¡ã£ã¦ããæ³ãã¦ãããæã¯ãªãããã ãââãããªæãããã¦çãã¦ããä½ãªããä¸ãå·ã¸ã§ã身ãæãã¦ãæ»ãã§ãã¾ã£ãæ¹ãã¾ãããç¥ããªãã æåæ¥ã¯ã²ã¨ããã£ãããããããªåãã¨ãããªããã¨ãæãããããã¦ã
åãäºãããã«ããããããªæ¸ãæ¹ãããããã§ããã«ãã¦çãã¦ããããããã³ã¼ããæ¸ããã¨ãããã¦ãã¦ãç´¹ä»ãã¾ãã ä¾ã¨ãã¦"abcde"ã80åç¹°ãè¿ããæååãä½ãã¨ãã¦å®éã«èªåã®ã³ã¼ãã£ã³ã°ã¹ã¿ã¤ã«ãã©ããªé¢¨ã«å¤åãã¦ãã£ãã®ããã¨ããã çããªãã®ã¯ç¢ºããªãã ãã©ãããããããã¨ããã¨ã人ã«ãããããããªãã ã°ãã¼ãã«é¢æ°ãå®ç¾©2å¹´åãªããå¤åããããå ·åã ã£ãã //ãµã¤ãã«é¢æ°ã¨ãã¦å®ç¾©ãã function x(str,num){ var tmp = ""; for(var i=0;i<num;i++){ tmp += str; } return tmp; } x("abcde",80) Stringã®ã¡ã½ããã¨ãã¦å®ç¾©1å¹´åã ã¨ãããªæãã //Stringã®ã¡ã½ããã¨ãã¦å®ç¾©ãã String.prototype.x = function(num){ var tmp
Prototype.jsã¨ã¯ãªã«ã Prototype.jsã¯ãSam Stephensonæ°ãä¸å¿ã¨ãããã¼ã ã«ãã£ã¦éçºããã¦ããAjax対å¿JavaScriptã©ã¤ãã©ãªã ãåä½ã§ãAjaxian.comã®2006å¹´ã¨2007å¹´ã®èª¿æ»ã§æãããç¥ãããAjaxãã¬ã¼ã ã¯ã¼ã¯ã«é¸ã°ããã»ã©ã®äººæ°ãå¾ã¦ããããå®ã¯Webã¢ããªã±ã¼ã·ã§ã³ã»ãã¬ã¼ã ã¯ã¼ã¯Ruby on Railsã®ããã¸ã§ã¯ãã§éçºããã¦ãããããã¯ãã§ãããåãã¬ã¼ã ã¯ã¼ã¯ã«å梱ããã¦ãããããRuby on Railsçµç±ã§ä½¿ç¨ãããã±ã¼ã¹ãå¤ãã ã©ã¤ãã©ãªã¯MITã©ã¤ã»ã³ã¹ã§å ¬éãããããã¥ã¡ã³ãã¯ã¯ãªã¨ã¤ãã£ãã»ã³ã¢ã³ãº(Creative Commons)ã©ã¤ã»ã³ã¹ã®Attribution-Share Alike 3.0ã§å ¬éããã¦ããã詳細ã¯ã©ã¤ã»ã³ã¹ã®ãã¼ã¸ã§ç¢ºèªãã¦ããã ãããã ãããã6åã«ããã£ã¦ãã
function backgroundLoad ( ids ) { for ( var i=0; i < ids.length; i++ ) { var a = getArticleWithCache(ids[i]); backgroundLoad(a.children); } } ãã®backgroundLoadã¯IDã®é åãå¼æ°ã«åãããã®åIDã«å¯¾ãã¦ä¸ã§å®ç¾©ããgetArticleWithCacheãå¼ã³åºãã¾ããããã§IDã«å¯¾å¿ããè¨äºã®ãã¼ã¿ããã£ãã·ã¥ããã¾ããããã¦èªã¿è¾¼ãã è¨äºã®åè¨äºã®IDã«å¯¾ãã¦backgroundLoadãå帰çã«å¼ã³åºããã¨ã§ãããªã¼å ¨ä½ããã£ãã·ã¥ãããã¨ãã§ãã¾ãã ããã¾ã§ãã¹ã¦ãã¾ããã£ã¦ããããã«è¦ãã¾ããããããä¸åº¦ã§ãAjaxéçºãçµé¨ãããã¨ã®ããæ¹ãªãã°ãããã§ã¯ãã¾ããããªãã¨ãããã¨ã¯ãã§ã«ããããã ã¨æãã¾ããããã¾ã§ã®ä¾ã§
jQueryã¨ã¯ãJavaScriptã®ã³ã¼ãã£ã³ã°ãå¼·åã«æ¯æ´ããã©ã¤ãã©ãªã§ãã $('.semooh a').hover( function(){ $(this).text('ãï¼'); }, function(){ $(this).text('ãã¼'); } );
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}