09 2020 档案

摘要://字符串编码转为unicode编码 function charToUnicode(str) { let temp; let i = 0; let r = ''; for (let val of str) { temp = val.codePointAt(0).toString(16); while 阅读全文
posted @ 2020-09-16 09:43 林中有风 阅读(1329) 评论(0) 推荐(0)
摘要:(function () { var slice = Array.prototype.slice; Function.prototype.bind = function () { var thatFunc = this, thatArg = arguments[0]; var args = slic 阅读全文
posted @ 2020-09-04 09:56 林中有风 阅读(196) 评论(0) 推荐(0)
摘要:// 判断是否是普通对象 export function isPlainObject(val: any): val is Object { return toString.call(val) '[object Object]' } 合并逻辑 function deepMerge(...objs: a 阅读全文
posted @ 2020-09-01 17:31 林中有风 阅读(497) 评论(0) 推荐(0)