我需要单击一个div来执行操作。我成功完成了桌面版本,但是当我转到移动设备时,单击操作不起作用。 我尝试了在stackoverflow和其他网站中找到的几种方法,但任何有效的方法...
我的桌面代码;
document.getElementById('BtMisDocumentos').click();
我的移动电话代码(3次尝试;];>
$('BtMisDocumentos').trigger('vclick'); $('BtMisDocumentos').trigger('tap'); $('BtMisDocumentos').trigger('touchstart');
Div;
<div id="BtMisDocumentos" class="dx-button dx-button-normal dx-button-mode-text dx-widget dx-button-has-text" onclick="void(0)" role="button" aria-label="Mis Documentos" style="width: 140px;"><div class="dx-button-content"><span class="dx-button-text">Mis Documentos</span></div></div>
谢谢!任何想法?也许不起作用,因为尽管使用了“真实”手机,但由于我正在使用用户代理?
我需要单击一个div来执行操作。我成功完成了桌面版本,但是当我转到移动设备时,单击操作不起作用。我尝试了在stackoverflow和其他网站中找到的几种方法,...
我认为您缺少某些内容:
[当使用jQuery和JavaScript时,将使用CSS样式选择器。