自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(36)
  • 收藏
  • 关注

转载 ASP.NET Core 学习笔记(认证授权)

https://docs.microsoft.com/zh-cn/aspnet/core/migration/1x-to-2x/identity-2x?view=aspnetcore-2.21、Cookie-based authentication2、JWT Bearer Authentication3、OpenID Connect (OIDC) authenticat...

2019-07-12 14:05:00 579

转载 ASP.NET Core 学习笔记(http请求处理)

1、http处理请求2、webhost 配置与启动1)自定义配置(json ,commandLine) public class mycly { public string cly { get; set; } public string name { get; set; } } p...

2019-06-13 18:26:00 251

转载 ASP.NET Core 学习笔记(依赖注入)

原文:http://www.jessetalk.cn/2017/11/06/di-in-aspnetcore/源码阅读:https://github.com/aspnet/AspNetCore解析:IWebHostBuilder.Build() 做了哪些事? 通用service 注入,; 返回IServiceProvider ;buid webhost;相关类:...

2018-04-21 00:09:00 160

转载 ASP.NET Core 学习笔记(配置管理)

1、命令行配置使用Configuration 需添加 Microsoft.AspNetCore.All ,安装完成后可using Microsoft.Extensions.ConfigurationConfiguration以键值对的方式获取1) 通过应用程序参数设置Configration2)从内存中获取 去除原先应用程序参数设置...

2018-04-20 00:11:00 145

转载 ASP.NET Core 学习笔记(环境配置与搭建)

一、环境安装1、下载网址https://www.microsoft.com/net/download/windows/build, 可选择三个 版本2、VS 2017 安装3、WINDOWS:IIS 启用  安装.net core 托管模块 DotNetCore.1.0.4_1.1.1-WindowsHosting.exe安装完成4、发布浏览...

2018-04-14 21:48:00 255

转载 centos 安装网卡

1、cd etc/sysconfig/network-scripts/2、vi ifcfg-ens33  编辑该文件 ONBOOT=yes  :wq3、重启网卡 service network restart注:ifconfig 需安装 sudo yum install net-tools转载于:https://www.cnblogs.com/caolingyi...

2018-04-14 18:08:00 103

转载 js 气泡提示

<link href="~/js/bootstrap-tour-standalone.min.css" rel="stylesheet" type="text/css" /><script src="~/js/bootstrap-tour-standalone.js"></script>bootstrap-tour-standalone...

2018-03-12 15:22:00 248

转载 云图 jQCloud

var data = [ ['北京', 8, 111], ['台湾', 1, 111]];var string_ = "";function SplitKeyWord() { for (var i = 0; i < data.length; i++) { var string_f = data[i][0]; ...

2018-03-12 11:41:00 201

转载 js 去除空格 回车换行

tempc = tempc.replace(/\ +/g, "");//去掉空格tempc = tempc.replace(/[ ]/g, ""); //去掉空格tempc = tempc.replace(/[\r\n]/g, "");//去掉回车换行//删除左右两端的空格 function trim(str) { ...

2018-03-12 11:31:00 145

转载 echarts-all.js 报表

@{ Layout = null;}<!DOCTYPE html><html><head> <meta name="viewport" content="width=device-width" /> <title>@ViewBag.Title</title>...

2018-03-12 11:29:00 584

转载 js cookie session

jquery.cookie.jsjquery.session.js使用$.cookie('MemberToken', result.Res_RefreshTokenInfo.Token, { path: '/', domain: 'customskb.com' });$.cookie('MemberToken', null, { expires: -1, pa...

2018-03-12 11:27:00 80

转载 js 跨域请求

function () { jQuery.support.cors = true; $.ajax({ type: "post", url: "...", data: { }, xhrFields: { withCreden...

2018-03-12 11:12:00 77

转载 mvc 分部视图

public class UserPartialController : Controller { // GET: UserPartial public ActionResult LoginPartial() { if (Session["OwnUser"] == null) ...

2018-03-12 11:09:00 111

转载 .net 繁简转换

public static class WordHelper { /// <summary> /// 将汉字转换成拼音 /// </summary> /// <param name="str"></param> /// <param...

2018-03-12 11:06:00 104

转载 IP段转换为 list

public static List<String> StringToIPList(string strIPs) { var reg1 = new Regex(@"(((2[0-4]\d)|(25[0-5])|([0-1]?\d{1,2}))\.?){4}(\-(((2[0-4]\d)|(25[0-5])|([0-1]?\d{1...

2018-03-12 11:05:00 273

转载 获取客户端IP、mac、主机名称

public class WebHelper { [DllImport("Iphlpapi.dll")] private static extern int SendARP(int dest, int host, ref long mac, ref int length); [DllImport("Ws2_32.dll"...

2018-03-12 11:03:00 122

转载 .NET 后台请求API

public static ResponseParam SendByHttpClienttoApi_LoginOn(string name, string password) { RequestParam para = new RequestParam() { APPID = ap...

2018-03-12 11:02:00 152

转载 .net mvc 发布后引用文件不打包

BundleConfig中RegisterBundles方法添加BundleTable.EnableOptimizations = false;//不打包转载于:https://www.cnblogs.com/caolingyi/p/8548106.html

2018-03-12 11:00:00 175

转载 百度地图使用

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>...

2018-03-12 10:20:00 114

转载 新浪实时股票接口

<script type="text/javascript" src="http://hq.sinajs.cn/list=sh600611,sh900903" charset="gb2312"></script><script type="text/javascript" src="http://hq.sinajs.cn/list=s_sh60061...

2018-03-12 10:18:00 115

转载 .net 去除HTML标签

public static string GetNoHtmlString(string text) { if (text == null) { text = ""; } //删除脚本 text = Reg...

2018-03-12 10:00:00 151

转载 表字段配置sql语句 使用存储过程执行

1、配置表信息USE [cishu]GO/****** Object: Table [dbo].[SearchConfig] Script Date: 03/09/2018 17:39:57 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOCREATE TABLE [d...

2018-03-09 17:44:00 311

转载 sql server 全文搜索(全文索引)

参考:https://www.cnblogs.com/chenmh/p/4434890.htmlhttps://www.cnblogs.com/lyhabc/p/3255960.html按照链接方式创建全文索引使用:全文谓词全文查询使用全文谓词(CONTAINS 和 FREETEXT)以及全文函数(CONTAINSTABLE 和 FREETEXTTABLE)。它们...

2018-03-09 17:28:00 293

转载 js 常用方法

//yyyy-MM-dd HH:mm:SSfunction getDateTime(date) { var year = date.getFullYear(); var month = date.getMonth() + 1; var day = date.getDate(); var hh = date.getHours(); ...

2018-03-09 16:19:00 72

转载 Json转换

public static class JsonConvert { public static string ObjectToJson(object obj) { DataContractJsonSerializer serializer = new DataContractJsonSerializer(obj....

2018-03-09 16:10:00 86

转载 .NET多线程

参考:https://www.cnblogs.com/edisonchou/p/4848131.htmlhttps://www.cnblogs.com/willick/p/4177977.html#header031、线程 System.Threading.Thread类Console.WriteLine("开始测试线程1"); // 初...

2018-03-09 16:02:00 112

转载 html5media.js跨浏览器兼容的HTML5视频音频播放器

原文:http://www.ijquery.cn/?p=866下载demo其实使用方法很简单,只需要在头部加载一个JS就可以。如下:<script src="html5media.min.js"></script>1、视频引用方法(type="video/mp4",type="video/ogg",type="application/x...

2018-03-09 14:27:00 236

转载 .net 下载文件

1、多文件下载并压缩using ICSharpCode.SharpZipLib.Zip; 1 public class DownLoadZip 2 { 3 public static void Download(IEnumerable<string> files, string zipFileName, Http...

2018-03-09 13:55:00 90

转载 .net 读取json 文件

原文:http://blog.csdn.net/w200221626/article/details/52169250json 文件 格式: 1 { 2 "total": 1, 3 "page": 1, 4 "records": 1, 5 "costtime": "100", 6 "rows": [ 7 ...

2018-03-09 13:40:00 207

转载 .net 传递参数

1.使用QueryString, 如....?id=1; response. Redirect(....?id=1) window.location.href=....?id=12.使用Session变量3.Cookie传值4.Application传值5.使用Server.Transfer 6.PreviosPageServer.Transfer和Resp...

2018-03-09 13:30:00 72

转载 xml配置文件使用-读取、转换

原文:https://www.cnblogs.com/johnsmith/archive/2012/12/03/2799795.html参考:https://www.cnblogs.com/dotnet261010/p/6513618.html1、实体类转换成XML2、将XML转换成实体类3、将DataTable转换成XML4、将XML转换成DataTable5、...

2018-03-09 12:34:00 165

转载 .NET 4.0 缓存

参考:https://www.cnblogs.com/wuhuacong/p/6518748.htmlhttps://www.cnblogs.com/RainbowInTheSky/p/5557936.htmlhttps://www.cnblogs.com/TianFang/p/3430169.htmlhttp://www.cnblogs.com/wuhuacong/p/...

2018-03-08 15:33:00 243

转载 jQuery分页插件pagination.js 笔记

原文:http://www.jq22.com/jquery-info5697简单使用方法引用<script src="jquery.js"></script><script src="jquery.pagination.js"></script>html<div class="box"&g...

2018-03-08 11:39:00 115

转载 Code-First Migration

原文:http://www.entityframeworktutorial.net/code-first/migration-in-code-first.aspx实体框架Code-First在EF 4.3之前具有不同的数据库初始化策略,如CreateDatabaseIfNotExists,DropCreateDatabaseIfModelChanges或DropCreateDatab...

2017-12-12 17:46:00 119

转载 Code-First 数据库初始化策略

原文:http://www.entityframeworktutorial.net/code-first/database-initialization-strategy-in-code-first.aspx有四种不同的数据库初始化策略:CreateDatabaseIfNotExists:这是默认的初始值设定项。顾名思义,如果每个配置都不存在,它将创建数据库。但是,如果更改模...

2017-12-12 17:03:00 102

转载 Microsoft OWIN Components

原文地址:https://msdn.microsoft.com/library/mt152002(v=vs.113).aspxNamespaceDescriptionMicrosoft.OwinThe Microsoft.Owin namespace contains classes that supports OWIN collection....

2017-11-03 15:34:00 119

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除