Parsing of html string using jquery

前端 未结 7 1675
[愿得一人]
[愿得一人] 2020-12-01 01:41

I am trying to parse this html through jQuery to get data1, data2, data3. While I do get data2 and data3 I am unable to get data3 with my approach. I am fairly new to jQuery

7条回答
  •  孤独总比滥情好
    2020-12-01 02:04

    It doesn't work because the

    with the class class0 doesn't have any text nodes as direct children. Add the class to the

    and it will work

提交回复
热议问题