摘要: 第一种: step1:添加引用(搜索CORS) step2: App_Start/WebApiConfig.cs中添加配置 step3: 在控制器中添加特性 第二种: 在App_Start/WebApiConfig.cs中添加方法 /// <summary> /// 允许跨域调用 /// </sum 阅读全文
posted @ 2021-02-10 16:05 后跳 阅读(138) 评论(0) 推荐(0)
摘要: 1.重写 protected override void WndProc(ref Message m) { if (m.Msg == 163 && this.ClientRectangle.Contains(this.PointToClient(new Point(m.LParam.ToInt32( 阅读全文
posted @ 2021-01-08 16:16 后跳 阅读(131) 评论(0) 推荐(0)
摘要: /* Nuget - NPOI.2.5.1 */ using NPOI.HSSF.UserModel;using NPOI.SS.UserModel;using NPOI.XSSF.UserModel;using System; using System.Data;using System.IO; 阅读全文
posted @ 2020-11-27 09:52 后跳 阅读(188) 评论(0) 推荐(0)
摘要: /* 题目: 啤酒2块钱1瓶, 4个瓶盖换1瓶 2个空瓶换1瓶 问:10块钱可以喝几瓶? */ using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Serbia 阅读全文
posted @ 2020-11-10 14:08 后跳 阅读(147) 评论(0) 推荐(0)
摘要: public partial class FrmMain : Form { public FrmMain() { InitializeComponent(); } private void 退出系统ToolStripMenuItem_Click(object sender, EventArgs e) 阅读全文
posted @ 2020-11-05 12:03 后跳 阅读(186) 评论(0) 推荐(0)
摘要: /*声明一个类成员为静态时,意味着无论有多少个类的对象被创建,只会有一个该静态成员的副本1.所有对象共享 2.不需要声明直接调用3.类加载时创建*/ class Calc { private Calc() { } private static double numbera; public doubl 阅读全文
posted @ 2020-09-12 09:08 后跳 阅读(277) 评论(0) 推荐(0)
摘要: 初始化: public DataTable1() { InitializeComponent(); Init(); } private void Init() { dt = new DataTable("cart"); DataColumn dc1 = new DataColumn("prizena 阅读全文
posted @ 2020-07-31 10:54 后跳 阅读(3855) 评论(0) 推荐(0)
摘要: 环境VS2008 无法运行WEB项目,Winfrom程序OK。 新创建的WEB项目直接运行报下图错误。 尝试多种方法: 1,重新生成项目,运行。(失败) 2,重装VS2008(默认、完全、自定义)安装完全版本。(失败) 3,将 <%@ Page Language="C#" AutoEventWire 阅读全文
posted @ 2020-05-12 10:00 后跳 阅读(1127) 评论(0) 推荐(1)
摘要: Html: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" 阅读全文
posted @ 2020-01-16 11:36 后跳 阅读(2973) 评论(0) 推荐(0)
摘要: Html代码: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="styleshee 阅读全文
posted @ 2020-01-15 09:27 后跳 阅读(269) 评论(0) 推荐(0)