let obj = layui.$('*[name="state"]');
if (localStorage.getItem('localStorageState')) {
obj.attr('checked', 'checked');
} else {
obj.removeAttr('checked');
}
form.render('checkbox');
版权属于:大卫科技Blog
本文链接:https://www.iyuu.cn/archives/505/
转载时须注明出处