layui 自用問題記錄

2021-10-07 22:22:48 字數 705 閱讀 8939

1.表單驗證  手機端無法聚焦   

---可在驗證標籤內 新增   lay-vertype="tips"  吸附式提醒   

其樣式位置:  static/layui-v2.5.6/layui/css/modules/layer/default/layer.css

樣式名稱:.layui-layer-tips i.layui-layer-tipsl, .layui-layer-tips i.layui-layer-tipsr    提示框角標    顏色:border-bottom-color

.layui-layer-tips .layui-layer-content  提示框 顏色:background-color

2.表單驗證  非空時才驗證 

----可更改 form.js  中的  相應正則或者判斷

路徑:layui-v2.5.6\layui\lay\modules\form.js

例; phone: [/^1\d$/, "請輸入正確的手機號"]  可改為: phone:[/(^$)|^1\d$/,'請輸入正確的手機號'],

number: function (e)  可改為:number: function (e)

3.注意點

動態生成的表單類標籤  需要重新渲染:layui.form.render();

動態生成的面板類標籤  需要重新初始化: layui.element.init(); 

ios crash問題記錄

1.誤將nsmutablearray型別的變數初始化為nsarray,結果對nsmutablearray型別變數進行操作時,crash h檔案如下 inte ce movemecontroller secondlevelviewcontroller property nonatomic,retain...

??? nginx lua問題記錄

問題1 當用http localhost test 訪問時,結果為何迥異?eg1 location test 結果為空,說明執行的是httpechomodule的echo指令,沒有執行httpluamodule的content by lua指令 eg2 location test輸出123 說明執行...

sphinx 問題記錄

indexer error while loading shared libraries libmysqlclient.so.18 cannot open shared object file no such file or directory 發現sphinx indexer依賴庫ibmysqlc...