摘要: 描述:用vuejs的v-for加载下拉框时,有时下拉框能加载出来数据,但有时加载不出来,尤其在vuejs的renderList方法加断点时一般能加载出来。(在vue对象外ajax同步请求并赋值) 方案:最后通过设置ajax请求async为false、在mounted方法中调用vue定义函数解决。 解 阅读全文
posted @ 2020-12-20 16:48 户的博客 阅读(885) 评论(0) 推荐(0) 编辑
摘要: 转载:https://blog.csdn.net/chengmodelong/article/details/46228109 1)过滤器中的: public class CMSAttribute : FilterAttribute, IAuthorizationFilter { public vo 阅读全文
posted @ 2020-12-04 19:27 户的博客 阅读(578) 评论(0) 推荐(0) 编辑
摘要: 转载:https://www.cnblogs.com/1312mn/p/10299835.html 一、MD5加密 HASHBYTES ('加密方式', '待加密的值') 加密方式= MD2 | MD4 | MD5 | SHA | SHA1 返回值类型:varbinary(maximum 8000 阅读全文
posted @ 2020-12-01 23:08 户的博客 阅读(425) 评论(0) 推荐(0) 编辑
摘要: using System.Text; using System.Security.Cryptography; namespace Tool { public class PasswordHelper { /// <summary> /// MD5 加密字符串 /// </summary> /// < 阅读全文
posted @ 2020-12-01 23:02 户的博客 阅读(576) 评论(0) 推荐(0) 编辑
摘要: 做asp.net mvc时会将一个配置项比如接口地址、MD5盐值写到config文件里,asp.net core mvc没有config文件、有一个appsettings.json,可在这个文件设置。 1、在appsettings.json增加一个ConnectionStrings和配置项 2、读取 阅读全文
posted @ 2020-12-01 22:57 户的博客 阅读(448) 评论(0) 推荐(0) 编辑
摘要: 1、在Startup.cs的ConfigureServices方法中增加services.AddSession(); 2、在Startup.cs的Configure方法中增加app.UseSession();(在UseRouting之后和UseEndpoints之前调用 UseSession) 3、 阅读全文
posted @ 2020-12-01 22:40 户的博客 阅读(1322) 评论(0) 推荐(0) 编辑
摘要: 给点击的<li></li>标签增加一个样式 $("li").click(function () { $(this).siblings().removeClass("active"); $(this).addClass("active"); }); 来源:https://blog.csdn.net/y 阅读全文
posted @ 2020-12-01 22:08 户的博客 阅读(691) 评论(0) 推荐(0) 编辑
摘要: (function () { var num = 0, d = null; $('#enterclick').click(function () { if (d) { clearTimeout(d) } d = setTimeout(function () { num = 0 }, 1000); n 阅读全文
posted @ 2020-11-30 22:28 户的博客 阅读(168) 评论(0) 推荐(0) 编辑
摘要: HTML5 <optgroup>标签用来定义一个选项组,即,可以将文档中的选项进行组合。 select标签使用<optgroup>分组: <select> <optgroup label="Swedish Cars"> <option value="volvo">Volvo</option> <op 阅读全文
posted @ 2020-11-28 22:45 户的博客 阅读(1893) 评论(0) 推荐(0) 编辑
摘要: 方法一:在table标签外添加一个<center><table></table></center>(可用,添加后水平居中) 方法二:有的时候在table的父div里面添加text-align:center是不管用的,这个时候可以给table添加margin:auto(可用,添加后水平居中) <tab 阅读全文
posted @ 2020-11-28 22:02 户的博客 阅读(2573) 评论(0) 推荐(0) 编辑