Allen 2022-10-07 01:10:48 396 0 0 0 0
QueryList,QueryList技巧总结

总结一些技巧

[meta name="twitter:title" content='卡戴珊家族 第二季 The Kardashians Season 2 (2022)' /]

规则:find('[property="twitter:title"]')->attrs('content')->all();

提取td中的内容

[td class="title"]
[a href="xxx" title="爱情片"]爱情片[/a]
[/td]
规则:['td.title','text']

也找到上一个标签,如[lable class="class1"],用规则:['.class1 .title' 'text']
这是笨方法,上面的是正规的用法。

Tag: QueryList
相关内容
欢迎评论
未登录,
请先 [ 注册 ] or [ 登录 ]
(一分钟即可完成注册!)
返回首页     ·   返回[程序开发]   ·   返回顶部