Skip to main content

try_parse_selector

Function try_parse_selector 

Source
pub fn try_parse_selector(css: &str) -> Option<Selector>
Expand description

尝试解析 CSS 选择器,失败时返回 None

不经过缓存,每次都重新解析。