ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
``` <form class="layui-form" action=""> <div class="layui-form-item"> <div class="layui-input-block"> <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button> </div> </div> </form> <script> //Demo layui.use('form', function(){ var form = layui.form; //监听提交 form.on('submit(formDemo)', function(data){ $.post( "getArrange", $(data.form).serialize(), function (obj) { if (obj.code == 1) { layer.msg(obj.msg, {time: 1500}, function () { window.location.href = 'arrange_remove'; }); } else { layer.msg(obj.msg, {time: 1500, anim: 6}); } } ); return false; }); }); </script> ———————————————— 版权声明:本文为CSDN博主「韩淼燃」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/weixin_36691991/article/details/94623530 ```