07 2018 档案

摘要:string str = "4231"; int js = 1; var ss = ""; for (int i=0;i<str.Length;i++) { var s0 = str[i].ToString(); var s1 = (js... 阅读全文
posted @ 2018-07-30 16:11 enych 阅读(579) 评论(0) 推荐(0) 编辑
摘要:<input type="file" id="file1" onChange="test()"> function test(){ var file1 = document.getElementById('file1'); alert("0000"); } 打开一个1G大小的文件无延迟, last 阅读全文
posted @ 2018-07-26 12:09 enych 阅读(150) 评论(0) 推荐(0) 编辑
摘要:C# 阅读全文
posted @ 2018-07-20 16:40 enych 阅读(284) 评论(0) 推荐(0) 编辑
摘要:@RenderSection("Styles", required: false) @section Styles{ } 阅读全文
posted @ 2018-07-20 15:18 enych 阅读(306) 评论(0) 推荐(0) 编辑
摘要://测试字符串 左包含 //string str = "AAABBBCCC"; //char[] ss = str.ToArray(); //0-8 字符数组 //char[] ss1 = str.ToCharArray();//0-8 字符数组 //给定一个字符串 AAA ... 阅读全文
posted @ 2018-07-19 09:50 enych 阅读(738) 评论(0) 推荐(0) 编辑
摘要:在桌面快捷方式 右键属性目标 加入该代码 –enable-easy-off-store-extension-install 阅读全文
posted @ 2018-07-19 08:16 enych 阅读(253) 评论(0) 推荐(0) 编辑
摘要:C# 统计字符串出现的次数 阅读全文
posted @ 2018-07-18 15:39 enych 阅读(230) 评论(0) 推荐(0) 编辑
摘要:string str0 = ""; string str1 = " "; var ss0 = str0.All(char.IsDigit); //true//识别空字符时候 会认为是数字 var ss1 = str1.All(char.IsDigit); //false//识别空字符时候 会认为是数 阅读全文
posted @ 2018-07-18 12:15 enych 阅读(1694) 评论(0) 推荐(0) 编辑
摘要:IEnumerable<Attribute> keys = p.GetCustomAttributes().ToList(); var data1 = data.Where(n => n.Name.Contains(search)).ToList(); if (data1.Count == 0) / 阅读全文
posted @ 2018-07-17 10:45 enych 阅读(3773) 评论(0) 推荐(0) 编辑
摘要:layui.use('form', function () { var form = layui.form; form.on('select(Status)', function (data) { console.log(data); console.log(data.value); ... 阅读全文
posted @ 2018-07-17 09:27 enych 阅读(401) 评论(0) 推荐(0) 编辑
摘要:IPagedList ss = Doclist.ToPagedList(page, pageSize); for (int i=0;i<ss.Count;i++) { var yy = ss[i]; } 阅读全文
posted @ 2018-07-17 08:48 enych 阅读(733) 评论(0) 推荐(0) 编辑
摘要://文件的输入流 阅读全文
posted @ 2018-07-13 14:39 enych 阅读(268) 评论(0) 推荐(0) 编辑
摘要:if (result.success) { var obj = JSON.parse(result.data); var sltObj = document.getElementById("selUser"); //获取select对象 for (va... 阅读全文
posted @ 2018-07-12 18:04 enych 阅读(10831) 评论(0) 推荐(0) 编辑
摘要:end begin 阅读全文
posted @ 2018-07-12 16:59 enych 阅读(7069) 评论(0) 推荐(0) 编辑
摘要:当value=""时候 自动添加选中样式 阅读全文
posted @ 2018-07-12 16:29 enych 阅读(257) 评论(0) 推荐(0) 编辑
摘要:private void button1_Click(object sender, EventArgs e) { textBox2.Text = ""; string str = ""; foreach (string s2 in textBox1.Lines) { ... 阅读全文
posted @ 2018-07-11 17:43 enych 阅读(409) 评论(0) 推荐(0) 编辑
摘要://跳转区域下的控制器 阅读全文
posted @ 2018-07-11 10:45 enych 阅读(297) 评论(0) 推荐(0) 编辑
摘要:@{ var str = ""; str = item.ApplyStatus == 0 ? "申请中" : item... 阅读全文
posted @ 2018-07-10 18:04 enych 阅读(1540) 评论(0) 推荐(0) 编辑
摘要:使用框架遇到的坑 阅读全文
posted @ 2018-07-10 10:56 enych 阅读(1875) 评论(0) 推荐(0) 编辑
摘要://注意 调用方法,传过去一个form对象(layui版本过低, 坑。。。。) var city={}; //加入下拉框改变事件,执行搜索 //加入搜索后值不变 赋值方法 弄了半天 ..擦 触发dd事件 阅读全文
posted @ 2018-07-09 18:58 enych 阅读(2475) 评论(0) 推荐(0) 编辑
摘要:@ViewData["MenuName"] 和 @ViewBag.MenuName 表示同一个值 阅读全文
posted @ 2018-07-07 14:32 enych 阅读(225) 评论(0) 推荐(0) 编辑
摘要:$("#form1").submit();//提交事件 阅读全文
posted @ 2018-07-07 14:21 enych 阅读(659) 评论(0) 推荐(0) 编辑
摘要:max-width: 100%;//父元素的宽度 display: block; margin: 0 auto; display: table-cell; 垂直居中 vertical-align: middle; style="max-width: 100%;max-height: 100%; di 阅读全文
posted @ 2018-07-07 10:29 enych 阅读(3419) 评论(0) 推荐(0) 编辑
摘要:HttpRuntime.AppDomainAppPath var fullpath = System.AppDomain.CurrentDomain.BaseDirectory + "appsettings.json"; if (File.Exists(fullpath)) { using (Str 阅读全文
posted @ 2018-07-05 17:45 enych 阅读(811) 评论(0) 推荐(0) 编辑
摘要:<a d ownload class="down" title=""> function download(src,name) { // 创建隐藏的可下载链接 var eleLink = document.createElement('a'); eleLink.href = src; eleLink 阅读全文
posted @ 2018-07-05 17:20 enych 阅读(10214) 评论(2) 推荐(0) 编辑
摘要:1. //重命名文件 // 改名方法 FileInfo fi = new FileInfo("旧路径"); //xx/xx/aa.rar fi.MoveTo("新路径"); //xx/xx/xx.rar ... 阅读全文
posted @ 2018-07-05 15:38 enych 阅读(29339) 评论(0) 推荐(4) 编辑
摘要:@using System.Text; @{ int js = 1; string str=""; StringBuilder sb = new StringBuilder(); } @foreach (var item in ViewBag.Doctypes) { ... 阅读全文
posted @ 2018-07-04 09:25 enych 阅读(592) 评论(0) 推荐(0) 编辑
摘要://把一个单独的对象 转换为json字符串 阅读全文
posted @ 2018-07-02 12:04 enych 阅读(261) 评论(0) 推荐(0) 编辑
摘要:#region --基础 ////设置目录树 ////添加根节点 //treeView1.Nodes.Add("0000000"); ////添加子节点 ////treeView1.SelectedNode.Nodes.Add("11111111"); ... 阅读全文
posted @ 2018-07-01 16:30 enych 阅读(234) 评论(0) 推荐(0) 编辑
摘要:非递归绑定3级别 阅读全文
posted @ 2018-07-01 16:03 enych 阅读(826) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示