摘要: 一、字符串 1 var str = 'Hello world!'; 2 console.log( str.indexOf('e') ); // 存在字符串中,返回位置 1 3 console.log( str.indexOf('d') ); // 存在字符串中,返回位置 10 4 console.l 阅读全文
posted @ 2023-01-13 18:30 net-sky 阅读(4257) 评论(0) 推荐(0) 编辑
摘要: 如题,在C#/.NET应用程序编程开发中如何判断一个集合中是否包含某个指定的素对象? 比如当前有一个对象集合(List): List<Customer> customers Customer.cs类似如下: public class Customer { public int Id{get;set; 阅读全文
posted @ 2023-01-13 18:27 net-sky 阅读(1106) 评论(0) 推荐(0) 编辑