嗨,我已经通过了几个线程,我无法找到正确的解决方案
这就是我的问题
当页面加载时,我需要在类名上启动一个Click Event。当单击发生时,调色板显示
下面是一个演示:http://demo.weibsites.com/index.php/product/test-product/
当用户点击Layer1或Layer2时,调色板显示
需要解决方案:使调色板显示onPageLoad
这里是一个快速代码
<div class="fpd-list ui-sortable">
<div class="fpd-list-row" id="1438484105689">
<div class="fpd-cell-0" style="opacity: 1; pointer-events: visible;">
<i></i>
</div>
<div class="fpd-cell-1" style="opacity: 1; pointer-events: visible;">
Layer1
</div>
<div class="fpd-cell-2"
<span class="fpd-lock-element fpd-tooltip tooltipstered">
<i class="fpd-icon-unlocked"></i>
</span>
</div>
</div>
</div>
谢谢
把这行放在你分配的点击事件之后,在控制台中尝试,没有问题
$(".fpd-list .fpd-list-row .fpd-cell-1").first().trigger('click');