摘要: export default defineConfig({ plugins: [vue()], resolve: { alias: { "@": fileURLToPath(new URL("./src", import.meta.url)), }, }, server: { host: "0.0. 阅读全文
posted @ 2024-08-12 15:16 ZooooZ 阅读(57) 评论(0) 推荐(0)
摘要: 就以下面的列表举个小例子吧: List<T> epList = new List<T>(); 方法1: 试了Max()取最大值的方法,但是方法返回的是一个特定的值,而不是对应的一条记录;有些不方便,当然也是可以如下方法实现: //取出最大值 var maxValue = epList.Max(x = 阅读全文
posted @ 2023-03-28 11:24 ZooooZ 阅读(870) 评论(0) 推荐(0)
摘要: .shangpin div p{ /* width: 213px; */ font-size: 16px; text-overflow: ellipsis; white-space:nowrap; overflow: hidden; } 文字区域设置 父级设置 .shangpin div{ /* m 阅读全文
posted @ 2023-03-16 09:42 ZooooZ 阅读(278) 评论(0) 推荐(0)
摘要: 今天看到已经更新了devblogs,新增的C# 11的!!(用于检查null的语法)经过非常长的讨论,最后取消了。然后我又想起来null检查,这个可以说一说。 函数参数null检查 传统写法 写一个函数的时候,最经典的检查,估计也是大家最常使用的null检查,应该是这样的吧: public stat 阅读全文
posted @ 2023-01-31 16:39 ZooooZ 阅读(106) 评论(0) 推荐(0)