sg_orm看当前sql信息 db.IsEnableLogEvent = true; db.LogEventStarting = (sql, pa) => { var t = 0; };
//出加载图片 $pubLayout.loading(); //关闭加载图片 $pubLayout.closeLoading();
获取url参数
$.request.queryString()
(异常时 搜索 layout_area windowbox
添加数字验证
function addNumberValidate(domId) { var form = $("#" + domId).closest("form"); var formData = []; var thisRule1 = { input: '#' + domId, message: '只能输入数字', action: 'keyup, blur', rule: 'number' }; if (form.data("validateKey") != null) { formData = form.data("validateKey"); } formData.push(thisRule1); formData = form.data("validateKey", formData); var thisRule2 = { input: '#' + domId, message: '只能输入整数', action: 'keyup, blur', rule: function (input) { var isReg = /^[0-9]d*$/; return isReg.test(input.val()); } }; if (form.data("validateKey") != null) { formData = form.data("validateKey"); } formData.push(thisRule2); formData = form.data("validateKey", formData); }