摘要:
/** * JS公用类库文件 */ (function(){ Tools = { W: window, D: document, Postfix: ".php", GetId: function(id){return document.getElementById(id)}, hi:function 阅读全文
摘要:
console.log("------默认排序(ASCII字符排序)------"); var arr = [1,2,55,12,88]; arr.sort(); //ASCII字符代码从小到大排序 console.log(arr.toString()); console.log("------自定 阅读全文
摘要:
<!DOCTYPE html> <html> <head> <title>返回顶部</title> <meta charset="utf-8" /> <script type="text/javascript" src="jquery-1.8.2.js"></script> <style type= 阅读全文
摘要:
1. function aesEncrypt(text, secKey) { var key = CryptoJS.enc.Utf8.parse(secKey); var iv = CryptoJS.enc.Utf8.parse("0102030405060708"); var srcs = Cry 阅读全文
摘要:
function a(a) { var d, e, b = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", c = ""; for (d = 0; a > d; d += 1) e = Math.random() * 阅读全文
摘要:
createMonthDay() { let daysOfMonth = []; let fullYear = new Date().getFullYear(); let month = new Date().getMonth() + 1; let lastDayOfMonth = new Date 阅读全文
摘要:
/// <summary> /// 字符串数组转换整形数组 /// </summary> /// <param name="Content">字符串数组</param> /// <returns></returns> public static int[] ToIntArray(string[] C 阅读全文
摘要:
方法一: string[] array = { "1", "2", "3" }; List<string> list = new List<string>(array); if(list.Contains("1")) { //字符串"1"存在 } else { //字符串"1"不存在 } 方法二: 阅读全文
摘要:
1 /// <summary> 2 /// 获得字符串中开始和结束字符串中间得值 3 /// </summary> 4 /// <param name="str">字符串</param> 5 /// <param name="s">开始</param> 6 /// <param name="e">结 阅读全文