<form class="layui-form" id="search" action="" method="GET">
<img src="test.png" alt="搜索" lay-submit="" lay-filter="submitBtn">
</form>
<script>
layui.use(['layer', 'form', 'layedit', 'element', 'laydate'], function(){
form.on('submit(submitBtn)', function(data){
$('#search').submit();
});
});
</script>
注:lay-submit="" lay-filter="submitBtn"有这两个属性