摘要: 委托就像是一个引用指针,可以指向相同类型的函数。 通过委托可以把函数像参数一样传递给另一个函数,这样能够减小程序的耦合,能实现回调函数。 例如 class Program { delegate void feeling(); static void smile() { Console.WriteLi 阅读全文
posted @ 2023-02-28 10:30 东云博士 阅读(25) 评论(0) 推荐(0)
摘要: 调用本项目中的mysqlhelper会报各种错误,怎么也修复不了。但是!!!,把这个mysqlhelper类放到其他项目里再在出现错误的项目中引用,发现就不会报错了????这是为什么啊 阅读全文
posted @ 2023-02-27 14:20 东云博士 阅读(20) 评论(0) 推荐(0)
摘要: function scrollbottom() { var h = $(document).height()-$(window).height(); $(document).scrollTop(h);} 阅读全文
posted @ 2023-02-24 17:03 东云博士 阅读(20) 评论(0) 推荐(0)
摘要: 可以参考微软文档https://learn.microsoft.com/zh-cn/aspnet/core/security/cors?view=aspnetcore-7.0#set-the-allowed-origins ,采用CORS中间件来解决问题 阅读全文
posted @ 2023-02-24 14:27 东云博士 阅读(22) 评论(1) 推荐(0)