1. 程式人生 > >text() html() empty()

text() html() empty()

body pty tex text post () class 清空 獲取

text() 獲取中間的文本 不包括標簽

html() 獲取標簽中間的東西 包括標簽 與text()是有區別的

empty() 清空標簽中間的東西,包括標簽裏面的標簽,總之,應用這個,標簽中間的東西都去掉了

text() html() empty()