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