04 2020 档案
摘要:1 fucntion ajax(url,fnSuccess,fnFaild) 2 { 3 //1,创建Ajax对象 4 if(window.XMLHttpRequest){ 5 var oAjax=new XMLHttpRequest(); 6 } 7 else 8 { 9 var oAjax=ne
阅读全文
摘要:1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 #parent{width: 600px;height:20px;background-color:#CCC;posi
阅读全文
摘要:1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 #parent{width: 600px;height:20px;background-color:#CCC;posi
阅读全文
摘要:1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 #div1{width: 100px;height:100px;background-color:red;positi
阅读全文
摘要:1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 #div1{width: 200px;height:200px;background-color:red;positi
阅读全文
摘要:1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 #div1{width: 100px;height:100px;background-color:red;positi
阅读全文
摘要:1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 #div1{width: 100px;height:100px;background-color:red;positi
阅读全文
摘要:1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 #div1{width: 200px;height:200px;background-color:red;positi
阅读全文
摘要:1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 #div1{width: 200px;height:200px;background-color:red;positi
阅读全文
摘要:1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 * {margin: 0; padding: 0; list-style: none;} 8 #div1{width:
阅读全文
摘要:1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 #div1{width: 100px; height: 100px;background-color:#CCC;pos
阅读全文
摘要:1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 div{width: 10px; height: 10px;background-color:red;position
阅读全文
摘要:1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 #div1{width: 300px; height: 300px;background-color:red;disp
阅读全文
摘要:1,MD5 用途: 1 防止明文:加密后保存比较安全,下次加密检验;密码要复杂一点 2 防篡改:文件上传;文件下载防挂马;svn 3 防止抵赖:需要一个第三方认证,数字签名 1 /// <summary> 2 /// 不可逆加密 3 /// 1 防止被篡改 4 /// 2 防止明文存储 5 ///
阅读全文
摘要:6.1 示例项目 项目结构: 6.1.1 创建模型类 Product.cs;计算Product对象集合的总价类LinqValueCalculator.cs;表示Product集合,并使用LinqValueCalculator来确定总价的类ShoppingCart.cs 1 public class
阅读全文
摘要:1,async/await 1 /// <summary> 2 /// await/async关键字 3 /// </summary> 4 public class AwaitAsyncShow 5 { 6 public static void TestShow() 7 { 8 Test(); 9
阅读全文
摘要:项目总览 1,log4net 1 <?xml version="1.0" encoding="utf-8"?> 2 <log4net> 3 <!-- Define some output appenders --> 4 <appender name="rollingAppender" type="l
阅读全文
摘要:问题:将文件夹及其下面的文件移动到其他目录 1 using Quality.Tools.Common.Log; 2 using System; 3 using System.Collections.Generic; 4 using System.Configuration; 5 using Syst
阅读全文
摘要:引入log4net.dll文件 1,Log4NetHelper 1 using log4net; 2 using System; 3 using System.Collections.Concurrent; 4 //Specifies the config file used by log4net
阅读全文
摘要:1,多重继承变化封装 2,桥接模式:解决多维度的变化 有一个手机抽象类如下: 1 /// <summary> 2 /// 抽象父类 3 /// </summary> 4 public abstract class BasePhone 5 { 6 /// <summary> 7 /// 操作系统 8
阅读全文
摘要:1,CSS 1 /* 触发弹窗图片的样式 */ 2 #researchImg { 3 border-radius: 5px; 4 cursor: pointer; 5 transition: 0.3s; 6 } 7 8 #researchImg:hover { 9 opacity: 0.7; 10
阅读全文
摘要:1 public class AwaitAsyncShow 2 { 3 public static void Show() 4 { 5 Test(); 6 } 7 private async static Task Test() 8 { 9 Console.WriteLine($"当前主线程id={
阅读全文
摘要:Random random=new Random();//伪随机 1 public class RandomHelper 2 { 3 /// <summary> 4 /// 获取随机数 5 /// </summary> 6 /// <param name="min">包含,能出现的最小值</para
阅读全文
摘要:1 public partial class frmSSQ : Form 2 { 3 public frmSSQ() 4 { 5 InitializeComponent(); 6 this.btnStart.Enabled = true; 7 this.btnStop.Enabled = false
阅读全文
摘要:1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 #div1{width: 100px; height: 100px;background-color:red;posi
阅读全文
摘要:1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 #div1{width: 150px; height: 200px;background-color:green;po
阅读全文
摘要:1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 #div1{width: 200px; height: 200px;background-color:red; 8 f
阅读全文
摘要:1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 #div1{width: 100px; height: 100px;background-color:red;posi
阅读全文
摘要:1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 #div1{width: 100px; height: 150px;background-color:red;posi
阅读全文
摘要:1 function getStyle(obj,name) { 2 if(obj.currentStyle){ 3 return obj.currentStyle[name]; 4 } 5 else{ 6 return getComputedStyle(obj,false)[name]; 7 } 8
阅读全文

浙公网安备 33010602011771号