摘要: 不说废话,直奔主题! 使用场景:微服务、前后端已经跨域。又不得不使用session 使用session的好处:此处省略若干字...... 做法: 客户端:该怎么写就怎么写。 服务端: Startup类 ConfigureServices 添加代码: Configure添加代码: 如果需要HttpOn 阅读全文
posted @ 2019-05-13 10:18 如虎添翼 阅读(1143) 评论(2) 推荐(0) 编辑
摘要: 1.webapi 返回cookie时,httpOnly=false 2.webapi 接收Origins 不能为* 3.js端 请求时,withCredentials必须: true //`withCredentials` indicates whether or not cross-site Ac 阅读全文
posted @ 2018-04-02 15:47 如虎添翼 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 1.安装 vetur 2.在User Setting中增加设置: "vetur.format.defaultFormatter.html": "js-beautify-html" 3.搞定 格式化快捷键:Alt+Shift+F 阅读全文
posted @ 2017-11-19 10:56 如虎添翼 阅读(14431) 评论(2) 推荐(5) 编辑
摘要: 直接上代码:public string EnCryptText(string text, byte[] desKey, byte[] desIv) { MemoryStream inputStream = new MemoryStream(); ... 阅读全文
posted @ 2016-01-15 17:06 如虎添翼 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 最近比较闲,不知道干点啥,想找兼职没有合适的,不找工资又不够花,o(︶︿︶)o 唉!说多了都是泪,入正题吧。首先,新建一个MVC4.0项目,建好之后打开Global.asax文件,在MVCApplication类中,只有一个方法Application_Start(),咱们就从它说起。Applicat... 阅读全文
posted @ 2015-06-12 17:07 如虎添翼 阅读(1718) 评论(0) 推荐(0) 编辑
摘要: A:return false--->In event handler ,prevents default behavior and event bubbing 。 return false 在事件的处理中,可以阻止默认事件和冒泡事件。B:event.preventDefault()---> In e... 阅读全文
posted @ 2015-01-20 13:18 如虎添翼 阅读(2994) 评论(0) 推荐(0) 编辑
摘要: 此段为原文翻译而来,原文地址WPF 中 数据绑定 ItemSource和 DataContext的不同点:1.DataContext 一般是一个非集合性质的对象,而ItemSource 更期望数据源是 集合对象。2.DataContext 是 FrameworkElement 类中定义的一个依赖属性... 阅读全文
posted @ 2014-11-21 15:51 如虎添翼 阅读(9051) 评论(0) 推荐(2) 编辑
摘要: Please open an administrative CMD window and navigate to C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE and run these commands:1.deve... 阅读全文
posted @ 2014-08-13 11:36 如虎添翼 阅读(679) 评论(0) 推荐(0) 编辑
摘要: 原文地址由于工作原因,要使用ASP.NET WEBAPI(非mvc webapi),前几天时间一直很紧张,所以webapi一直将就用,今天下午好不容易有时间终于看了下,解决了自己一直疑惑的问题,在此特贴出,给大家分享。Here’s an overview of how WebAPI binds parameters to an action method. I’ll describe how parameters can be read, the set of rules that determine which technique is used, and then provide some 阅读全文
posted @ 2014-03-06 14:41 如虎添翼 阅读(694) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2013-07-26 21:46 如虎添翼 阅读(6) 评论(0) 推荐(0) 编辑