摘要:
public getRandomArr(num:number): number[]{ var array:number[] = new Array; //给原始数组original赋值 var i :number; for(i= 0;i < num;i++) { array[i] = i; }// 打乱数组... 阅读全文
posted @ 2017-02-25 11:11
xiejunzhao
阅读(2374)
评论(0)
推荐(0)
摘要:
function(str){ var realLength = 0, len = str.length, charCode = -1; for (var i = 0; i = 0 && charCode <= 128) { realLength += 1; } else { realLength += 2; ... 阅读全文
posted @ 2017-02-25 11:08
xiejunzhao
阅读(205)
评论(0)
推荐(0)
摘要:
function(num) { var number = parseFloat(num)*100; return parseInt(number+0.5)/100;};null 阅读全文
posted @ 2017-02-25 11:07
xiejunzhao
阅读(124)
评论(0)
推荐(0)
摘要:
static public void DeleteFolder(string dir){ int num = 0; foreach (string d in Directory.GetFileSystemEntries(dir)) { if (File.Exists(d)) { FileInfo fi = new FileInfo... 阅读全文
posted @ 2017-02-25 11:03
xiejunzhao
阅读(211)
评论(0)
推荐(0)
摘要:
Given a word, you need to judge whether the usage of capitals in it is right or not.We define the usage of capitals in a word to be right when one of the following cases holds:All letters in this word... 阅读全文
posted @ 2017-02-25 11:02
xiejunzhao
阅读(190)
评论(0)
推荐(0)

浙公网安备 33010602011771号