replace
功能說明
將字串中所有符合的子字串替換為新的字串。
語法
{{ 字串 | replace: "原字串", "新字串" }}範例
{{ "I like cats. Cats are great." | replace: "cats", "dogs" }}I like dogs. Cats are great.Updated 6 months ago
功能說明
將字串中所有符合的子字串替換為新的字串。
語法
{{ 字串 | replace: "原字串", "新字串" }}範例
{{ "I like cats. Cats are great." | replace: "cats", "dogs" }}I like dogs. Cats are great.Updated 6 months ago