<formclass="layui-form"action="">
<divclass="layui-form-item">
<labelclass="layui-form-label">反馈主题</label>
<divclass="layui-input-block">
<inputname="title"class="layui-input"type="text"placeholder="请输⼊标题"autocomplete="off"lay-
<divclass="layui-form-item">
<labelclass="layui-form-label">姓名</label>
<divclass="layui-input-block">
<inputname="fname"class="layui-input"type="text"placeholder="请输⼊姓名"autocomplete="off"lay-
<divclass="layui-form-item">
<labelclass="layui-form-label">⼿机</label>
<divclass="layui-input-block">
<inputname="phone"class="layui-input"type="tel"autocomplete="off"placeholder="请输⼊⼿机"lay-
<divclass="layui-form-item">
<labelclass="layui-form-label">邮箱</label>
<divclass="layui-input-block">
<inputname="email"class="layui-input"type="text"autocomplete="off"placeholder="请输⼊邮箱"lay-
<divclass="layui-form-item">
<labelclass="layui-form-label">单选框</label>
<divclass="layui-input-block">
<inputname="sex"title="男"type="radio"checked=""value="男">
<inputname="sex"title="⼥"type="radio"value="⼥">
<inputname="sex"title="保密"type="radio"value="密">
<divclass="layui-form-item layui-form-text">
<labelclass="layui-form-label">内容</label>
<divclass="layui-input-block">
<textareaclass="layui-textarea layui-hide"name="contact"id="LAY_demo_editor"lay-
verify="contact"></textarea>
<divclass="layui-form-item">
<divclass="layui-input-block">
<buttonclass="layui-btn"lay-filter="demo2"lay-submit="">跳转式提交</button>
<buttonclass="layui-btn"lay-filter="demo1"lay-submit="">⽴即提交</button>
<buttonclass="layui-btn layui-btn-primary"type="reset">重置</button>
layui.use(['form', 'layedit', 'laydate'], function(){
,laydate = layui.laydate;
}, fname: function(value){
}, contact: function(value){
,phone: [/^1[3|4|5|7|8]\d{9}$/, '⼿机必须11位,只能是数字!']
,email: [/^[a-z0-9._%-]+@([a-z0-9-]+\.)+[a-z]{2,4}$|^1[3|4|5|7|8]\d{9}$/, '邮箱格式不对']
layedit.build('LAY_demo_editor');
form.on('submit(demo1)', function(data){
layer.alert(JSON.stringify(data.field), {