layui中switch开关如何点击监听获取属性值及状态变化?
网友回复
举个例子,一下
<input type="checkbox" class="switch_checked" lay-filter="switchinfoid"
info_id="12344433"
lay-skin="switch" checked lay-text="上架|下架">
再看看js怎么写
layui.use(['form'], function () {
var form = layui.form;
form.on('switch(switchinfoi...点击查看剩余70%


