<
form
class
="layui-form"
action=""
method
="post"
>
<
div
class
="logi_content"
>
<
p class
="tit"
>
管理系統
<
div
class
="layui-form-item"
>
<
label
class
="layui-form-label"
>
賬號:<
div
class
="layui-input-block"
>
<
input
type
="text"
name
="username"
lay-verify
="required|username"
autocomplete
="on"
placeholder
="請輸入您的郵箱"
class
="layui-input"
>
<
div
class
="layui-form-item"
>
<
label
class
="layui-form-label"
>
密碼:<
div
class
="layui-input-block"
>
<
input
type
="password"
name
="password"
lay-verify
="required|pass"
autocomplete
="on"
placeholder
="請輸入密碼"
class
="layui-input"
>
<
ul class
="login_ul"
>
<
li class
="de_lu"
>
<
img
src=
"__img__/select.png"
alt=
""class
="select"
/>
<
img
src=
"__img__/selected.png"
alt=
""class
="selecteds"
/>
自動登入
<
li class
="forgit"
>
<
a href=""
>
忘記密碼?
<
ul class
="reset"
>
<
li class
="di"
>
<
a class
='entersubmit'id=
'entersubmit'
lay-submit
lay-filter
="*"
>
登入<
li class
="re"
>
<
a href=""
>
重置layui.use([
'layer'
,'upload'
,'form'
],function
() )+$/
, '賬號格式不正確'
],pass: [
/^[\s]$/
, '密碼必須6到12位,且不能出現空格'
]});
/***
通用表單提交(ajax方式)
*/form.on(
'submit(*)'
, function
(data) , 1000);
}layer.msg(info.msg);
}});
return
false
;}); })
//回車鍵觸發提交 $(
"input"
).keydown(
function
(event) })
layui表單提交
form method post div class layui form item label for l email class layui form label 郵箱 label div class layui input inline input type text id l email n...
layui表單自帶驗證
layui 表單 1.表單自帶校驗 lay verify 是表單驗證的關鍵字 有以下值供選擇 required 必填項 phone 手機號 email 郵箱 url number 數字 date 日期 identity 身份證 自定義值 同時支援多條規則的驗證 格式 lay verify 驗證a 驗...
layui表單提交到後台
思路 我在開發問卷調查模組時,想新增問卷的時候使用layui彈出乙個表單,然後經過校驗提交到ssm下的controller裡 一 jsp要彈出的表單 add class layui btn layui btn sm 新增問卷提交 二 layui指令碼 layui.use layer form fun...