10 2017 档案
摘要:<!doctype html> <html> <head> <meta charset="utf-8"> <title>t1</title> <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scal
阅读全文
摘要:const add1 = (x) => x + 1 const mul3 = (x) => x * 3 const div2 = (x) => x / 2 //每个函数都要return 进行传参数的 div2(mul3(add1(add1(0)))) // => 3 const compose =
阅读全文
摘要:type = (obj) => { const pass1 = typeof obj if (pass1 != 'object') return pass1 const pass2 = obj == null ? 'null' : Object.getPrototypeOf(...
阅读全文
摘要:function safeGet (data, path){ if (!path) return undefined var paths = path.split('.') var res = data while (paths.length) { res = res[paths.shift()]
阅读全文
摘要:例如:extractStr('My name is:Jerry. My age is:12.') // => ['Jerry', '12']
阅读全文
摘要:const toChineseNum = (num) => { const unit = ['', '十', '百', '千'] const counts = ['零', '一', '二', '三', '四', '五', '六', '七', '八', '九'] const pre = Math.floor(num / 10000) const ne...
阅读全文
摘要:地址:http://code.ciaoca.com/ HTML & CSS CSS 选择器演示 Flexible Box 演示 HTML 常用标签演示 Web 常用字体演示 CSS 选择器演示 Flexible Box 演示 HTML 常用标签演示 Web 常用字体演示 CSS 速查表 CSS 中文
阅读全文