/// <summary> /// 生成0-9随机数 /// </summary> /// <param name="codeNum">生成长度</param> /// <returns></returns> public static string RndNum(int codeNum) { St ...
分类:
其他好文 时间:
2020-07-06 12:51:31
阅读次数:
195
[JavaScript 中文开发手册generator.next (Generator) - JavaScript 中文开发手册The next() method returns an object with two properties done and value. You can also p... ...
分类:
编程语言 时间:
2020-07-05 12:06:10
阅读次数:
122
C# Object Clone Wars Cloning C# objects is one of those things that appears easy but is actually quite complicated with many "gotchas." This article d ...
/// <summary> /// 格式化文本(防止SQL注入) /// </summary> /// <param name="str"></param> /// <returns></returns> public static string Formatstr(string html) { S ...
分类:
数据库 时间:
2020-07-02 19:49:11
阅读次数:
85
#region 对象转换处理 /// <summary> /// 判断对象是否为Int32类型的数字 /// </summary> /// <param name="Expression"></param> /// <returns></returns> public static bool IsN ...
分类:
其他好文 时间:
2020-07-02 16:36:59
阅读次数:
45
用于对文字内部进行过滤,类比身份证号手机号等敏感信息 /* 数字脱敏处理 param str 字符串 param frontLen 字符串前面保留位数,默认3位 param endLen 字符串后面保留位数,默认4位 returns {string} */ hideCode(str, frontLe ...
分类:
其他好文 时间:
2020-07-01 19:54:18
阅读次数:
122
/** * @param {objectList} [arr=[]] [要对比的数组对象] * @param {string} [field] [每一项要对比的字段] * @returns {boolean} [isNotEqual] [返回boolean值每一项是否相等] */ getEqual( ...
分类:
编程语言 时间:
2020-07-01 12:32:17
阅读次数:
75
13 约定 A common problem that arises when wrapping C libraries is that of maintaining reliability and checking for errors. The fact of the matter is tha ...
分类:
其他好文 时间:
2020-06-29 22:57:18
阅读次数:
82
路径相关函数 path.basename('/foo/bar/baz/asdf/quux.html'); // Returns: 'quux.html' path.basename('/foo/bar/baz/asdf/quux.html', '.html'); // Returns: 'quux' ...
分类:
Web程序 时间:
2020-06-29 20:17:20
阅读次数:
72
1. Your goal in this kata is to implement a difference function, which subtracts one list from another and returns the result. It should remove all va ...
分类:
其他好文 时间:
2020-06-28 09:41:17
阅读次数:
75