12 2017 档案

摘要:.text-ellipsis { width:100px; height:60px; overflow: hidden;//隐藏滚动条 text-overflow:ellipsis; white-space: nowrap; } .span-text { display: block; } 阅读全文
posted @ 2017-12-20 17:03 LBO.net 阅读(216) 评论(0) 推荐(0)
摘要:/* *p需要拷贝的对象 * */ var deepCopy=function(p, c) { var c = c || {}; for (var i in p) { if (typeof p[i] === 'object') { c... 阅读全文
posted @ 2017-12-16 11:28 LBO.net 阅读(143) 评论(0) 推荐(0)
摘要://C#通过ToUpper()方法将字符串转换成大写,代码如下: string sentence= "this is in upper case."; Console.WriteLine(sentence.ToUpper()); //C#通过ToLower()方法将字符串转换成小写,代码如下 string sentence= "this is in Lower case."; Console... 阅读全文
posted @ 2017-12-12 14:02 LBO.net 阅读(830) 评论(0) 推荐(0)
摘要:function RQcheck(RQ) { var date = RQ; //(-|\/)分隔符 var result = date.match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/); if (result == null) ... 阅读全文
posted @ 2017-12-07 18:17 LBO.net 阅读(3447) 评论(2) 推荐(0)
摘要://img格式验证 function imgFormat(name) { //再对文件名进行截取,以取得后缀名 var namearr= name.split("."); //获取截取的最后一个字符串,即为后缀名 var suffix = namearr[namearr.le... 阅读全文
posted @ 2017-12-05 14:58 LBO.net 阅读(598) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; namespace demo { class Program { static void Main(string[] args) { List names = new List(); names.Add(... 阅读全文
posted @ 2017-12-04 17:11 LBO.net 阅读(2490) 评论(1) 推荐(0)

//返回顶部