web-combine-note(1)

it2025-04-04  2

  ——空格

这个段落拥有更大的行高。 //像素值表示的行高

jQuery: function getDeptName(data) { var params = data.value; var list; $.ajax({ url: ‘/LandProject/GetAllDeptType’, type: ‘Post’, success: function (data) { }, }); }

$.ajax({ //键值对 url: “/Login/CheckUser”,//请求路径 dataType: “json”, data: { loginName: T.username, loginPwd: encodeURI(encryptPwd).replace(/+/g, ‘%2B’), valita: T.code, },//请求的参数 type: “post”,//请求方式 cache: false, success: function (data) { if (data.state == “success”) {

window.location.href = data.message; } else { } } });

//layui 的界面 --根据权限进行 初始化移除不要的 pages数据来自: string[] noPages= await UserMgr.GetUserNoPermissionPages(userId); string json = JsonConvert.SerializeObject(noPages); return json; ///=pages 其中GetUserNoPermissionPages为: //根据所有的页面减去用户页面获取不包含的页面 string[] noPages = allFunctions.Where(i => !pageIds.Contains(i.FunctionId)) .Select(i => “/” + i.ControllerName + “/” + i.ActionName) .ToArray(); return noPages;


$.ajax({ type: “Post”, url: “/Home/GetUserNoPages”, success: function (pages) { var pageArray = JSON.parse(pages);//pages; //对菜单项进行移除 for (var index = pid_0.length-1; index > 0; index–) {//首菜单项:5 4 3 2 1 var pid_i = pid_0[index - 1]; if (pid_i.spread === “true”) { for (var sindex = pid_i.children.length; sindex > 0; sindex–) {孩子菜单项:长度逐次减一 var pid_i_child = pid_i.children[sindex - 1]; if (pageArray.indexOf(pid_i_child.href) != -1) { pid_i.children.splice(sindex - 1, 1); } } if (pid_i.children.length === 0) { pid_0.splice(index - 1, 1); } } } …

//success: function (data) { // T.layer.close(index); // if (data.state == “success”) { // T.layer.msg(“密码修改成功,三秒后跳转到登录页面!”); // setTimeout(function () { // window.parent.location.href = “…/Login/LoginOut”; // }, 3000); // } else { // T.layer.msg(data.message); // } //}

forgetPassword: function () { var T = this; layer.open({ type: 2, title: “修改密码”, fix: false, maxmin: false, area: [‘400px’, ‘400px’], content: ‘/Login/ResetPassword?username=’ + T.username, //这样的尽量写在后台 control层 success: function (index,layero) { }, end: function () { } }); },

document.onkeydown = function (e) { // if (!e) e = window.event; if ((e.keyCode || e.which) == 13) { loginbox.loginbtn(); } }

最新回复(0)