在chrome上进行调试时隐藏元素代码吗?

时间:2019-05-27 21:38:44

标签: javascript

我正在调试的代码在这里:

https://reed123.000webhostapp.com/test/story_html5.html

如果将鼠标悬停在表盘的针脚上,我会在针脚上得到aria标签,如下所示:

enter image description here

但是当我将鼠标移出图钉时,图钉的aria标签会隐藏起来:

enter image description here

坏消息是我无法使用jQuery选择带有aria标签的引脚。

我尝试过:

            dispatch_async(dispatch_get_main_queue(), ^{
                // Update the UI on the main thread.
                [UIView setAnimationsEnabled:NO];

                [tableView beginUpdates];

                [tableView endUpdates];
                [UIView setAnimationsEnabled:YES];


            });

但是似乎我无法使用此aria标签选择大头针!!!

请帮助,我真的需要使用aria标签来使用jQuery选择图钉。

为什么我没有那个aria标签以及如何选择它?

1 个答案:

答案 0 :(得分:1)

我认为您想选择动态创建的元素。看这里-jQuery select dynamically created html element