starts-with
starts-with 檢查第一個字串是否以第二個字串開頭,並返回 true 或 false。
語法
starts-with(haystack, needle)
引數
返回值
如果 haystack 以 needle 開頭,則返回 true。否則,返回 false。
規範
Gecko 支援情況
支援。
starts-with 檢查第一個字串是否以第二個字串開頭,並返回 true 或 false。
starts-with(haystack, needle)
如果 haystack 以 needle 開頭,則返回 true。否則,返回 false。
支援。