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 阅读全文
posted @ 2017-10-12 18:25 风吹麦浪打 阅读(128) 评论(0) 推荐(0) 编辑
摘要:const add1 = (x) => x + 1 const mul3 = (x) => x * 3 const div2 = (x) => x / 2 //每个函数都要return 进行传参数的 div2(mul3(add1(add1(0)))) // => 3 const compose = 阅读全文
posted @ 2017-10-12 16:26 风吹麦浪打 阅读(160) 评论(0) 推荐(0) 编辑
摘要:type = (obj) => { const pass1 = typeof obj if (pass1 != 'object') return pass1 const pass2 = obj == null ? 'null' : Object.getPrototypeOf(... 阅读全文
posted @ 2017-10-12 14:50 风吹麦浪打 阅读(334) 评论(0) 推荐(0) 编辑
摘要:点击 阅读全文
posted @ 2017-10-12 14:21 风吹麦浪打 阅读(387) 评论(0) 推荐(0) 编辑
摘要:function safeGet (data, path){ if (!path) return undefined var paths = path.split('.') var res = data while (paths.length) { res = res[paths.shift()] 阅读全文
posted @ 2017-10-11 17:02 风吹麦浪打 阅读(388) 评论(0) 推荐(0) 编辑
摘要:例如:extractStr('My name is:Jerry. My age is:12.') // => ['Jerry', '12'] 阅读全文
posted @ 2017-10-11 16:46 风吹麦浪打 阅读(212) 评论(0) 推荐(0) 编辑
摘要:const toChineseNum = (num) => { const unit = ['', '十', '百', '千'] const counts = ['零', '一', '二', '三', '四', '五', '六', '七', '八', '九'] const pre = Math.floor(num / 10000) const ne... 阅读全文
posted @ 2017-10-11 16:44 风吹麦浪打 阅读(1369) 评论(0) 推荐(0) 编辑
摘要:地址:http://code.ciaoca.com/ HTML & CSS CSS 选择器演示 Flexible Box 演示 HTML 常用标签演示 Web 常用字体演示 CSS 选择器演示 Flexible Box 演示 HTML 常用标签演示 Web 常用字体演示 CSS 速查表 CSS 中文 阅读全文
posted @ 2017-10-10 16:31 风吹麦浪打 阅读(216) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示