6.0.7版本之前可用
/resources/views/layouts/Stock.blade.php
/resources/views/layouts/SubStock.blade.php
<script>
setTimeout(function() {
if(document.all) {
document.getElementById("kucun_{{$good['id']}}").click();
}
else {
var e = document.createEvent("MouseEvents");
e.initEvent("click", true, true);
document.getElementById("kucun_{{$good['id']}}").dispatchEvent(e);
}
}, 300);// 模拟点击0.3秒=300ms
</script>
![](http://iii.bma.cn/img_bma_cn/2022/12/16/cQEOr9TGP50xnOmgece33f4c8be07a046b2b2d7f0d570____1671197139116.png)