上一页 1 2 3 4 5 6 7 ··· 129 下一页

2023年7月25日

摘要: 在组件的script标签内直接引入: import myFunction from '@/util/custom.js'; 开始使用自定义js中的方法: export default { // ... other Vue component options methods: { someMethod 阅读全文
posted @ 2023-07-25 09:46 荆棘人 阅读(169) 评论(0) 推荐(0) 编辑
摘要: Delegate.CreateDelegate 是 C# 中的一个方法,能够在运行时动态创建委托。 一些常用的使用场景: 1,动态方法调用:Delegate.CreateDelegate 的主要使用场景之一:当需要动态调用方法而无需在编译时知道该方法的签名时。根据用户输入或配置设置确定要调用的方法。 阅读全文
posted @ 2023-07-25 09:39 荆棘人 阅读(584) 评论(0) 推荐(0) 编辑

2023年7月24日

摘要: 1,可以引用元素,通过this.$refs.domxx直接操作元素。 <div ref="domxx"></div> methods: { getxx() { console.log(this.$refs.domxx) // 访问DOM元素 } } 2,可以绑定组件实例,访问组件的属性和方法; 参考 阅读全文
posted @ 2023-07-24 10:37 荆棘人 阅读(52) 评论(0) 推荐(0) 编辑

2023年6月29日

摘要: 资料:Common web application architectures | Microsoft Learn 微软的这篇文章,讨论了常见的web应用程序架构。大概可以分为三类: 1,新建的asp.net Core web项目,单体架构,在单个项目场景中,通过使用文件夹来实现关注点分离。如图: 阅读全文
posted @ 2023-06-29 10:36 荆棘人 阅读(210) 评论(0) 推荐(0) 编辑

2023年6月25日

摘要: 尝试加载Oracle客户端库时引发 BadImageFormatException。 通过修改环境变量,改好了。Path、ORACLE_HOME,都只指向32位oracle数据库版本,然后可以了; 阅读全文
posted @ 2023-06-25 13:47 荆棘人 阅读(20) 评论(0) 推荐(0) 编辑

2023年5月18日

摘要: What is the difference between using Mutex class and using the lock keyword? Here is a table that summarizes the key differences between the Mutex cla 阅读全文
posted @ 2023-05-18 13:30 荆棘人 阅读(9) 评论(0) 推荐(0) 编辑
摘要: Dispose 接口也称为 IDisposable 接口。它用于为类提供一种释放不受垃圾收集器管理的非托管资源的方法,例如文件句柄、网络连接、数据库连接等。 通过实现 IDisposable 接口,您告诉您的类的用户在完成 class3 后应该调用 Dispose() 方法。 这样,您可以尽快释放资 阅读全文
posted @ 2023-05-18 11:28 荆棘人 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 问题:asp.net web应用程序,如果配置数据设置在 Web. config,每次修改配置项的值,都需要重启应用才能生效,怎么优化? 对于 ASP.net web 应用程序,如果配置数据设置在 Web. config,每次修改配置项的值,都需要重启应用才能生效。 有没有更好的方法来配置应用程序所 阅读全文
posted @ 2023-05-18 09:49 荆棘人 阅读(205) 评论(0) 推荐(0) 编辑

2023年5月16日

摘要: 将表设计成一对一,还是一对多。是需要综合考虑的。 设计成一对一,进行统计时将比较简单;设计成一对多,则更灵活,并且可以详细记录变更流程。 阅读全文
posted @ 2023-05-16 09:33 荆棘人 阅读(13) 评论(0) 推荐(0) 编辑

2023年5月6日

摘要: 将业务无关的逻辑,修改为异步执行,示例代码: public ActionResult SubmitOrder(Order order) { // Save the order to the database synchronously // Send email asynchronously usi 阅读全文
posted @ 2023-05-06 09:54 荆棘人 阅读(15) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 129 下一页

导航