随笔分类 - .net学到的知识
摘要:委托就像是一个引用指针,可以指向相同类型的函数。 通过委托可以把函数像参数一样传递给另一个函数,这样能够减小程序的耦合,能实现回调函数。 例如 class Program { delegate void feeling(); static void smile() { Console.WriteLi
阅读全文
摘要:function scrollbottom() { var h = $(document).height()-$(window).height(); $(document).scrollTop(h);}
阅读全文
摘要:可以参考微软文档https://learn.microsoft.com/zh-cn/aspnet/core/security/cors?view=aspnetcore-7.0#set-the-allowed-origins ,采用CORS中间件来解决问题
阅读全文
浙公网安备 33010602011771号