2011-06-01ãã1ã¶æéã®è¨äºä¸è¦§
ååã®ç¶ãã pluginæ©æ§ã¨ã Riddle.jsã«ã¯pluginæ©æ§ãããã¾ããã¨æ¸ãã¨ãªãã ãã«ãã³ãããã«èãããããããã¯çµå±å¤é¨ã«ã¨ã¯ã¹ãã¼ãããã¦ããã·ã³ãã«ã®ãã¡ï¼ã¤(rã¨r.fn)ã«é¢æ°ãçããã¨pluginã£ã½ããã¨ãåºæ¥ã¾ãããã¨ããã ãã®è©±ã«ãããªâ¦
ååã¯ã»ã¨ãã©ã©ã¤ãã©ãªã®ç´¹ä»ããæ¸ãã¦ãªãã£ãã®ã§ãä»åã®å 容ã¯å¾ãããå°ã ã®ç¥è¦ã¨ãå®è£ ä¸ã«èãã¦ããã¨ã¨ãã§ãã ç°å¢ãéã£ã¦ãããç¨åº¦ã®å²ãåããè¡ãã°selector-basedãªãªã¬ãªã¬ã©ã¤ãã©ãªãæ¸ãã®ã¯å¤§ãã¦é£ãããªããã¨ããã㨠ã©ãã¾â¦
selector-based libraryã£ã¦ã¾ãä½ããããã£ã¦è©±ã§ããããããã$("#id")ã¿ããã«cssã»ã¬ã¯ã¿ã§elementãã¢ãªã£ã¨å¼ã£å¼µã£ã¦ãã¦ããã®wrapãããelementéåã«çãã¦ãé¢æ°ã§ãããããããã¨ãã¡ã¤ã³ã®ç®çã¨ããã¦ãJavaScriptã©ã¤ãã©ãªã®ãã¨ãåã¯ãâ¦
ç¾ç¶ã®localStorageã¨ãsessionStorageã¯ãvalueã¨ãã¦æååããsetã§ããªãå®è£ ã°ãããªã®ã§ãã¢ããªã§ä½¿ããªãsetããæã«JSON.stringifyãã¦ãgetããæã«JSON.parseãããããªã©ããã¼ãæ¸ããªãã¨ç¡çã¨ã¾ã§ã¯è¨ããªããããã©ããããã¾ãã localStoâ¦