11 2018 档案

摘要:1. css 中上下左右居中 (1)子容器绝对定位,top:0,bottom:0,margin:auto (2) 子容器相对定位,top:50%,translateY(-50%) (3) 子元素1:float, 子元素2:clear:both; floter元素的margin-bottom值 = c 阅读全文
posted @ 2018-11-27 12:33 1点 阅读(119) 评论(0) 推荐(0) 编辑
摘要:Promise 的基本使用和原理 1.new Promise 实例,而且要return 2.new Promise 要传入函数,函数里面有两个参数,函数有resolve,reject 3.成功时执行resolve(),失败时执行 reject() 4.then 进行监听 阅读全文
posted @ 2018-11-23 15:18 1点 阅读(97) 评论(0) 推荐(0) 编辑
摘要:Es6 模块化如何使用,开发环境如何打包 1.基本语法 import 与export 在一个文件中export一个,在要引用他的文件夹中 import 一个 在一个文件夹中export 多个,在引用他的文件夹中 import多个 import { .... } from 。。。 2.开发环境配置 b 阅读全文
posted @ 2018-11-22 21:37 1点 阅读(132) 评论(0) 推荐(0) 编辑
摘要:bind方法生成了一个新的函数,称为绑定函数,传入bind方法的第一个參数作为这个绑定函数的this对象,传入bind的第二个參数连同后面调用绑定函数时传入的參数依照先后顺序(传入bind的在前)构成绑定函数的參数。 将 全局的this 传入,使得 阅读全文
posted @ 2018-11-19 11:04 1点 阅读(366) 评论(0) 推荐(0) 编辑
摘要:var time = obj.biz_date + ' ' + obj.hours; //查找数组中的重复值 function find_first(arr, callback) { var val; arr.forEach((elt, i, arry) =>{ if(callback(elt)){ 阅读全文
posted @ 2018-11-16 09:44 1点 阅读(3229) 评论(0) 推荐(0) 编辑
摘要:var newage_group = age_group.filter(function(element,index,self){ return self.indexOf(element) index; }); 阅读全文
posted @ 2018-11-15 09:49 1点 阅读(114) 评论(0) 推荐(0) 编辑
摘要:有两种方法: 1. 阅读全文
posted @ 2018-11-12 17:53 1点 阅读(1469) 评论(0) 推荐(0) 编辑
摘要:1.html 2.数据 3.方法 效果: 阅读全文
posted @ 2018-11-09 14:24 1点 阅读(13418) 评论(0) 推荐(0) 编辑
摘要:1. 效果: 2. 3. 阅读全文
posted @ 2018-11-09 10:21 1点 阅读(1100) 评论(0) 推荐(0) 编辑
摘要:这个错误是应该导入hightchart 使用的相关的 东西 ,这里是worldcloud import Wordcloud from 'highcharts/modules/wordcloud'; Wordcloud(highcharts) 注意 这里不是 vue.use(Wordcloud) 不要 阅读全文
posted @ 2018-11-07 15:56 1点 阅读(5289) 评论(0) 推荐(0) 编辑

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