You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
场景:如果内容的id为:<div id="0.12.x-=>-1.0.x" ></div>,那么 querySelector 回报错的:Failed to execute 'querySelector' on 'Document': '#0.12.x-=>-1.0.x' is not a valid selector
建议:因为 Anchor 里面选择的都是 id ,建议直接使用 getElementById
The text was updated successfully, but these errors were encountered:
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.
lockbot
locked as resolved and limited conversation to collaborators
May 3, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
版本:antd 2.4.2
场景:如果内容的id为:
<div id="0.12.x-=>-1.0.x" ></div>
,那么querySelector
回报错的:Failed to execute 'querySelector' on 'Document': '#0.12.x-=>-1.0.x' is not a valid selector
建议:因为 Anchor 里面选择的都是 id ,建议直接使用 getElementById
The text was updated successfully, but these errors were encountered: