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

浙公网安备 33010602011771号