python - 从 a 中选择第一个元素
问题描述
我的页面包含以下代码:
<menu data-anonid="sgg_list" hidden="true" label="GG_12">
<li hidden="false" data-selected="false" title="First_item" data-important="false"><label>X12</label><small>cc</small></li>
<li hidden="false" data-selected="false" title="Second_item" data-important="false"><label>X12 X13</label><small>z1</small></li>
<li hidden="false" data-selected="false" title="Third_item" data-important="false"><label>XX12</label><small>z2</small></li>
<li hidden="false" data-selected="true" title="Fourth_item" data-important="false"><label>XX13</label><small>z3</small></li>
<li hidden="false" data-selected="false" title="VV" data-important="false"><label>XX2</label><small>Hz5</small></li>
</menu>
当我在其中插入文本时,文本框会打开它,并且我想在它出现时选择其中一个选项(或始终选择第一个选项)。
解决方案
推荐阅读
- java - 等待自动缩放开始
- php - Unable to loop through values using for - Laravel 5.6 Blade Template
- c++ - 可变参数与非可变参数函数模板重载偏序
- websocket - 如何在adonis js websocket控制器中登录用户
- c# - ICalendar (ICS) - 只有 VEVENT 组件适用于 Outlook/googleCalendar
- java - 如何使用 intellij IDEA 停止重新格式化大括号上的中断
- c# - 如何确定var的大小?
- python - 具有多个意图的 PyQt5(同一窗口中的页面)
- c++ - ''没有这样的文件或目录' 'cmake' 从源代码为 C++ 中的 libssh 0.8.2 生成成功后?
- java - 使用多核的前缀搜索算法