摘要: 前台页面提交文件 <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width" /> <title>文件操作</title> </head> <body> <form id="upFileForm"> 阅读全文
posted @ 2020-07-05 10:48 netlock 阅读(377) 评论(0) 推荐(0) 编辑
摘要: 有几个0 string t = "0001203"; int tLen = t.Length - t.TrimStart('0').Length; charAt方法 using System; namespace Company{ public class TestMain{ static void 阅读全文
posted @ 2020-07-05 10:45 netlock 阅读(587) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 生成唯一数 /// </summary> public class UniqueData { private static object obj = new object(); private static int GuidInt { get { return G 阅读全文
posted @ 2020-07-05 10:44 netlock 阅读(728) 评论(0) 推荐(1) 编辑
摘要: 转自:http://www.cnblogs.com/weixing/p/5674078.html References required: HttpContextWrapper - System.Web.dll RemoteEndpointMessageProperty - System.Servi 阅读全文
posted @ 2020-07-05 10:07 netlock 阅读(2006) 评论(0) 推荐(0) 编辑
摘要: Select 'Insert into Auth_Key Values('''+convert(nvarchar(50),NEWID())+''','''+AuthKey+''',''' +ModuleName+''', '''+MenuName+''','''+FunctionName+''',' 阅读全文
posted @ 2020-07-05 09:59 netlock 阅读(870) 评论(0) 推荐(0) 编辑
摘要: 1:配置 接口注释。 (1)配置生成xml的路径。我们在项目上面点右键→属性→生成标签页配置xml的路径。 (2)在xml的读取路径:在Areas\HelpPage\App_Start\HelpPageConfig.cs里面配置xml的读取路径。 config.SetDocumentationPro 阅读全文
posted @ 2020-07-05 09:38 netlock 阅读(814) 评论(0) 推荐(0) 编辑
摘要: 一开始的解决办法就是把bin下的文件都删除了,但是roslyn文件夹下的部分文件一直被占用,必须进程中把vbcscompiler进程干掉,才能删除,再重新编译,就没问题了。 阅读全文
posted @ 2020-07-05 09:16 netlock 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 打开vs2017开发者命令提示符 切换至安装下的指定目录 执行下面的命令就可以了 需要注意的是一定要用vs2017的开发人员命令提示符 别用cmd gacutil -i Microsoft.VisualStudio.Shell.Interop.11.0.dll 阅读全文
posted @ 2020-07-05 09:14 netlock 阅读(422) 评论(0) 推荐(0) 编辑
摘要: 删除 item不设置 arr.splice(1,1) //['a','c','d'] 删除起始下标为1,长度为1的一个值,len设置的1,如果为0,则数组不变 arr.splice(1,2) //['a','d'] 删除起始下标为1,长度为2的一个值,len设置的2 替换 item为替换的值 arr 阅读全文
posted @ 2020-07-03 21:23 netlock 阅读(9213) 评论(0) 推荐(0) 编辑
摘要: 使用JQ <script> let old, oldColor; $("#sp_body tr").click(function (i) { if (old) oldColor = old.css("background-color", oldColor) old = $(this) oldColo 阅读全文
posted @ 2020-07-03 19:39 netlock 阅读(1958) 评论(0) 推荐(0) 编辑