1、为什么会出现跨域问题 官方文档:https://docs.microsoft.com/zh-cn/aspnet/core/security/cors?view=aspnetcore-3.1 浏览器安全的基石是"同源政策"(same-origin policy)。同源指三个相同 ①协议相同 ②域名 ...
分类:
数据库 时间:
2020-06-08 10:43:56
阅读次数:
374
在配置文件中添加以下代码,App.config或Web.config <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Ne ...
分类:
Web程序 时间:
2020-06-07 21:23:28
阅读次数:
121
API代码using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Cors; using Microsoft ...
分类:
数据库 时间:
2020-06-07 19:52:11
阅读次数:
129
函数装饰器和闭包 1装饰器前提: 函数装饰器用于在源码中“标记”函数,以某种方式增强函数的行为。这是一项强大的功能,但是若想掌握,必须理解闭包。 nonlocal 是新近出现的保留关键字,在 Python 3.0 中引入。作为 Python 程序员,如果严格遵守基于类的面向对象编程方式,即便不知道这 ...
分类:
编程语言 时间:
2020-06-07 15:02:18
阅读次数:
60
(1)在学习和开发EF Core的过程中遇到了哪些问题,是如何解决的? 在进行数据库迁移的时候失败了。最后发现是少了一个迁移用的库Microsoft.EntityFrameworkCore.Design, 在Visual Studio 菜单中选择“项目”>“管理 NuGet 包”单击“浏览”,找到包 ...
分类:
其他好文 时间:
2020-06-07 14:46:59
阅读次数:
53
综合练习: PIVOT、UNPIVOT、GROUPING SETS、GROUPING_ID /* 《Microsoft SQL Server 2008 T-SQL Fundamentals》 */ select * from Orders --按照empid分组 select empid from ...
分类:
其他好文 时间:
2020-06-07 13:03:50
阅读次数:
49
fatal: No url found for submodule path 'design' in .gitmodules 如图,.gitmodules中已经没有design的路径了 原因可能是本地存在缓存,清理一下缓存就好了 git rm --cached [路径名] 比如此处我是:git rm ...
分类:
其他好文 时间:
2020-06-07 12:47:30
阅读次数:
111
nums = [] lst = [i for i in range(101)] l = [] for j in range(2,101): # 将质数加入到 l 中 temp = 1 for i in range(2,j-1): if lst[j] % i == 0: temp = 0 if tem ...
分类:
其他好文 时间:
2020-06-07 12:41:13
阅读次数:
61
using System;using System.Collections.Generic;using System.Linq;using System.Threading.Tasks;using Microsoft.AspNetCore.Mvc; namespace LayUICore.Areas ...
分类:
其他好文 时间:
2020-06-07 10:50:33
阅读次数:
62
Configuration 注:建议提前备份所有修改内容,可能会导致无法开机。 我的测试环境: server: windows 10 + windbg client: windows 7 Server Server代表被调式机,修改vmx文件,查找并删除所有serial项,添加以下串口配置: ser ...
分类:
系统相关 时间:
2020-06-06 14:29:01
阅读次数:
94