随笔分类 - ASP.NET
ASP.NET的code 笔记
摘要:js核心代码: function UploadFile() { var formData = new FormData(); jQuery.support.cors = true; var file = $("#uploadFile")[0].files[0]; formData.append("f
阅读全文
摘要:1、 CalculatorDelegate calculatorDel = delegate(double x, double y) //直接定义法 { return x + y; }; Console.WriteLine("委托一个方法的结果为:{0}", calculatorDel(1, 2))
阅读全文
摘要:try { string strFilePath = Server.MapPath("~") + "/excel/20170206104654.xlsx";//服务器文件路径 FileInfo fileInfo = new FileInfo(strFilePath); Response.Clear(
阅读全文
摘要:<html><head><meta charset="utf-8"></head><body> <p>输入数字并点击验证按钮:</p> <input id="id1" type="number" min="100" max="300"><button onclick="myFunction()">验
阅读全文
摘要:<html> <head> <style type="text/css">body{ margin: 0; padding: 0; } .my-canvas{ margin: 20px; border:10px solid #c3c3c3; } </style></head> <body> <div
阅读全文
摘要:class Program { static void Main(string[] args) { IndexClass a = new IndexClass(); a[0] = "张三"; a[1] = "李四"; a[2] = "王五"; Console.WriteLine("a[0]=" +
阅读全文
摘要:using System; namespace Test{ [AttributeUsage(AttributeTargets.Property)] public class StringLengthtAttribute : Attribute { private int _maximumLength
阅读全文

浙公网安备 33010602011771号