2020年1月9日
摘要: 1、注册事件 1.1、注册事件概述 给元素添加事件,称为注册事件或者绑定事件 注册事件有两种方式:传统方式和方法监听注册方式 @传统注册方式: 利用on开头的事件onclick 特点 注册事件的唯一性。 同一个元素同一个事件只能设置一个处理函数,最后注册的处理函数将会覆盖前面的注册的处理函数 @方法 阅读全文
posted @ 2020-01-09 09:50 leizhui 阅读(173) 评论(0) 推荐(0) 编辑
  2020年1月8日
摘要: 4.6 自定义属性的操作 1.获取属性值 element.属性 获取属性值 element.getAttribute('属性') 区别 element.属性 获取内置属性值 element.getAttribute('属性') 主要获取自定义属性 2.设置属性值 element.属性='值' 设置内 阅读全文
posted @ 2020-01-08 13:08 leizhui 阅读(192) 评论(0) 推荐(0) 编辑
  2019年12月27日
摘要: 文本显示不下是显示“...” /*1.先强制一行内显文本*? white-space: nowrap; /* 2.超出的部分隐藏*/ overflow: hidden; /* 3.文字用省略号替代超出的部分*/ text-overfow : ellipsis; 阅读全文
posted @ 2019-12-27 15:40 leizhui 阅读(150) 评论(0) 推荐(0) 编辑
  2019年12月1日
摘要: 引用ICSharpCode.SharpZipLib.dll 1 /// <summary> 2 /// 压缩文件 3 /// </summary> 4 /// <param name="dirpath">压缩后存放地址</param> 5 /// <param name="filepath">需要压 阅读全文
posted @ 2019-12-01 11:40 leizhui 阅读(537) 评论(0) 推荐(0) 编辑
  2019年11月18日
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 using System.IO; 7 usi 阅读全文
posted @ 2019-11-18 13:09 leizhui 阅读(335) 评论(0) 推荐(0) 编辑
  2019年11月7日
摘要: 1 //根据excle的路径把第一个sheel中的内容放入datatable 2 public static DataTable ReadExcelToTable(string path)//excel存放的路径 3 { 4 try 5 { 6 7 //连接字符串 8 string connstri 阅读全文
posted @ 2019-11-07 15:17 leizhui 阅读(2539) 评论(0) 推荐(2) 编辑
  2019年11月6日
摘要: 1 Microsoft.Office.Interop.Excel.Application objApp = new Microsoft.Office.Interop.Excel.Application();//创建对象 2 Workbook objwork = objApp.Workbooks.Op 阅读全文
posted @ 2019-11-06 10:09 leizhui 阅读(289) 评论(0) 推荐(0) 编辑
  2019年10月28日
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Windows.Forms; 6 using System.Drawing; 7 8 namespace Logistics 9 { 10 /// <summary> 11 /// 阅读全文
posted @ 2019-10-28 09:24 leizhui 阅读(1150) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 using System.Text.RegularExpressions; 7 8 namespace Logistics 9 { 10 /// <summary> 11 /// 通用验证类 12 /// 阅读全文
posted @ 2019-10-28 09:23 leizhui 阅读(924) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 //引入三个命名空间 7 using System.Runtime.Serialization; 8 using System.Runtime.Serialization.Formatters.Binar 阅读全文
posted @ 2019-10-28 09:21 leizhui 阅读(3055) 评论(0) 推荐(0) 编辑