ãreplace()ãã¯ãæååã®ç½®æãè¡ãé¢æ°ã§ãã åºæ¬çãªä½¿ãæ¹ã¯ãä¸è¨ã®éãã§ãã var text = "abcabc"; var result = text.replace(/a/g, "1"); // "abcabc"å ã®"a"ãæå¾ã¾ã§æ¤ç´¢ãã¦"1"ã«ç½®æãã // çµæï¼resultã¯"1bc1bc"ã«ãªã ãreplace()ãã®ç¬¬ï¼å¼æ°ã®ã/a/gãã¯ãæ¤ç´¢ããæååãæ£è¦è¡¨ç¾ã§è¡¨ãããã®ã§ãã æ£è¦è¡¨ç¾ã§ã¯ãæ¤ç´¢ããæååãã/ï¼ã¹ã©ãã·ã¥ï¼ãã§å²ã¿ã¾ãã æ«å°¾ã®ãgãã¯ãæå¾ã¾ã§æ¢ãã¨ãããã©ã°ã§ãã ãã©ã°ã«ã¯ä¸è¡¨ã®ãããªãã®ãããã¾ãã ãã©ã°æå³ gï¼åç®ã ãã§ãªãæå¾ã¾ã§æ¤ç´¢ãã¾ãã iæ¤ç´¢ã®éã«å¤§æåã¨å°æåãåºå¥ãã¾ããã mè¤æ°è¡ã«æ¸¡ã£ã¦æ¤ç´¢ãã¾ãã ï¼ãgããã©ã°ãä»ããªãã¨ï¼åç®ããç½®æãã¾ããã ï¼ã¾ããtext.replace("a", "1
{{#tags}}- {{label}}
{{/tags}}