Find written content; content selector

let aa = $ ( "div: empty"); // find the div tag is empty, no content is no child tags 
let aa = $ ( "div: parent"); // find the content div tag has child elements
let aa = $ ( "div: contains ( ' I')"); // find the label only contain the specified text content,
let aa = $ ( "div: has ( 'span')"); // found containing the specified tag Elements

Guess you like

Origin www.cnblogs.com/duokexiao/p/11294847.html