摘要: /** * JS公用类库文件 */ (function(){ Tools = { W: window, D: document, Postfix: ".php", GetId: function(id){return document.getElementById(id)}, hi:function 阅读全文
posted @ 2016-02-25 17:55 sofootball 阅读(210) 评论(0) 推荐(0) 编辑
摘要: console.log("------默认排序(ASCII字符排序)------"); var arr = [1,2,55,12,88]; arr.sort(); //ASCII字符代码从小到大排序 console.log(arr.toString()); console.log("------自定 阅读全文
posted @ 2016-02-25 17:44 sofootball 阅读(6282) 评论(1) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <title>返回顶部</title> <meta charset="utf-8" /> <script type="text/javascript" src="jquery-1.8.2.js"></script> <style type= 阅读全文
posted @ 2016-02-25 17:42 sofootball 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 1. function aesEncrypt(text, secKey) { var key = CryptoJS.enc.Utf8.parse(secKey); var iv = CryptoJS.enc.Utf8.parse("0102030405060708"); var srcs = Cry 阅读全文
posted @ 2016-02-25 17:38 sofootball 阅读(6488) 评论(0) 推荐(0) 编辑
摘要: function a(a) { var d, e, b = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", c = ""; for (d = 0; a > d; d += 1) e = Math.random() * 阅读全文
posted @ 2016-02-25 17:35 sofootball 阅读(1677) 评论(0) 推荐(0) 编辑
摘要: createMonthDay() { let daysOfMonth = []; let fullYear = new Date().getFullYear(); let month = new Date().getMonth() + 1; let lastDayOfMonth = new Date 阅读全文
posted @ 2016-02-25 17:32 sofootball 阅读(2204) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 字符串数组转换整形数组 /// </summary> /// <param name="Content">字符串数组</param> /// <returns></returns> public static int[] ToIntArray(string[] C 阅读全文
posted @ 2016-02-25 17:28 sofootball 阅读(3811) 评论(0) 推荐(0) 编辑
摘要: 方法一: string[] array = { "1", "2", "3" }; List<string> list = new List<string>(array); if(list.Contains("1")) { //字符串"1"存在 } else { //字符串"1"不存在 } 方法二: 阅读全文
posted @ 2016-02-25 17:26 sofootball 阅读(7913) 评论(0) 推荐(0) 编辑
摘要: 1 /// <summary> 2 /// 获得字符串中开始和结束字符串中间得值 3 /// </summary> 4 /// <param name="str">字符串</param> 5 /// <param name="s">开始</param> 6 /// <param name="e">结 阅读全文
posted @ 2016-02-25 17:11 sofootball 阅读(801) 评论(0) 推荐(0) 编辑
摘要: 在VS.NET 的命名行窗口下,输入如下的代码。 1 ,生成一个KeyFile sn -k keyPair.snk 2, 得到程序集的MSIL ildasm SomeAssembly.dll /out:SomeAssembly.il 3 ,为了避免冲突,把原来的DLL 文件改名 ren SomeAs 阅读全文
posted @ 2016-02-24 10:38 sofootball 阅读(1092) 评论(0) 推荐(0) 编辑