摘要: #include <iostream>#include <cstdlib>using namespace std;typedef int ElemType;#define MAX_SIZE 100#define INIT_SIZE 100#define ERROR 0#define OK 1type 阅读全文
posted @ 2021-10-19 16:47 pursuit_purity 阅读(75) 评论(0) 推荐(0)
摘要: ioc的实现 一,用配置文件xml实现 首先用maven导入spring的包 new 一个 file 在xml configuration file 里面选择spring config <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http 阅读全文
posted @ 2021-07-28 16:33 pursuit_purity 阅读(84) 评论(0) 推荐(0)
摘要: using JWT; using JWT.Algorithms; using JWT.Exceptions; using JWT.Serializers; using System; using System.Collections.Generic; using System.Linq; using 阅读全文
posted @ 2021-05-13 19:09 pursuit_purity 阅读(47) 评论(0) 推荐(0)
摘要: class Dao { public SqlConnection connection() {//连接数据库的方法 string str = @"Data Source=WWK \ SQLEXPRESS01;Initial Catalog=demo;Integrated Security=True" 阅读全文
posted @ 2021-05-11 14:38 pursuit_purity 阅读(76) 评论(0) 推荐(0)
摘要: session的到底是做什么的?_h19910518的博客-CSDN博客_session是什么 大佬的文章 阅读全文
posted @ 2021-05-10 14:18 pursuit_purity 阅读(41) 评论(0) 推荐(0)
摘要: [ASP.Net ]利用ashx搭建简易接口 - 秋天 - 博客园 (cnblogs.com) asp.net中ajax和一般处理程序(handler.ashx)的交互_纯纯要加油的博客-CSDN博客 大佬的博客,不多说 阅读全文
posted @ 2021-05-08 18:49 pursuit_purity 阅读(198) 评论(0) 推荐(0)
摘要: 委托其实是一个类 delegate 实现方法的叠加调用 一.基本用法 public delegate int Tpons(int x); class Program { static void Main(string[] args) { Tpons t = new Tpons(ss.max); t 阅读全文
posted @ 2021-04-11 15:48 pursuit_purity 阅读(43) 评论(0) 推荐(0)
摘要: 用于前后端的交互 要引入类库litjson 或其它的 json转c# JSON.parse 的作用是把「符合 JSON 语法的字符串」变成「JS 里的数据结构」 JSON.stringify 的作用是把「JS 里的数据结构」变成「符合 JSON 语法的字符串」 //第一种解析方式 List<Peop 阅读全文
posted @ 2021-04-11 12:34 pursuit_purity 阅读(44) 评论(0) 推荐(0)
摘要: 一.几个注意点 1.不允许跨线程访问 private void Form1_Load(object sender, EventArgs e) { Control.CheckForIllegalCrossThreadCalls = false; }//在窗口加载时加上 ` 2. 多线程的使用 hrea 阅读全文
posted @ 2021-04-08 19:04 pursuit_purity 阅读(100) 评论(0) 推荐(0)
摘要: 在主程序运行时,若进入死循环,或者忙着执行某一程序,导致后面的代码没办法执行 可以用多线程解决 1.代码 Thread th1 = new Thread(Resive); th1.Start(s); //start只是告诉cpu可以执行了 具体执行时间得看cpu th1.IsBackground = 阅读全文
posted @ 2021-04-08 18:41 pursuit_purity 阅读(43) 评论(0) 推荐(0)