We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我了解到html在使用querySelector()方法中并没有支持nth-child,(该库似乎正在添加这个支持),可是我看到您代码已经存在使用了,如下
html
querySelector()
nth-child
detailModel.nodeId = document .querySelector( '#Wrapper > div > div:nth-child(1) > div.header > a:nth-child(6)') .attributes["href"]
想知道这是为什么呢?
The text was updated successfully, but these errors were encountered:
这点你可以看下它这里的注释 https://github.com/dart-lang/html/blob/7f31979303f916f2aabb9e2091950798abdd9ca1/lib/dom.dart#L88,据我当时的测试,我那样写是支持的哦
Sorry, something went wrong.
这个注释之前看过了,看的不是很明白,注释的意思不是说不支持的Selector会抛出UniplmentedError吗,我这边是解析后无结果;选择器的参数(正则表达式?不懂怎么称呼这个),试了你的或从浏览器拷出来都一样无果。
UniplmentedError
感觉浪费了很多时间精力在解析html,有点得不偿失了。
这个注释之前看过了,看的不是很明白,注释的意思不是说不支持的Selector会抛出UniplmentedError吗,我这边是解析后无结果;选择器的参数(正则表达式?不懂怎么称呼这个),试了你的或从浏览器拷出来都一样无果。 感觉浪费了很多时间精力在解析html,有点得不偿失了。
解析 Html 这块,当初刚开始摸索的时候是确实费了好大劲。通了一个之后,依葫芦画瓢就好多了
No branches or pull requests
我了解到
html
在使用querySelector()
方法中并没有支持nth-child
,(该库似乎正在添加这个支持),可是我看到您代码已经存在使用了,如下想知道这是为什么呢?
The text was updated successfully, but these errors were encountered: