![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端之路
包括一些前端从基础到进阶的知识
Shen_Winnie
小小前端开发
展开
-
【BizCharts】可视化图表使用(3)——环形图(使用极坐标来实现)
效果图 描述 多重圆环重叠 颜色 环形带背景 环形开头的坐标(1月,2月…) 数据 // 数据源 const data = [{ month: '01', value: 0.25, }, { month: '02', value: 0.5, }, { month: '03', value: 0.75, }, { month: '04', value: 0.75, }]; 设置每个月份对应的颜色 const原创 2021-10-09 11:27:28 · 534 阅读 · 0 评论 -
【this指向】之末:练习
var name = 222 var a = { name: 111, say: function () { console.log(this.name) } } var fun = a.say fun() // 222 a.say() // 111 var b = { name: 333, say: function (fun) { fun() } } b.say(a.say) // 222 b.say = a.say b.say() // 333原创 2021-06-20 18:48:02 · 48 阅读 · 0 评论 -
【this指向】之三:函数和箭头函数中的this
1.普通函数 在这里插入代码片原创 2021-06-20 17:32:53 · 56 阅读 · 0 评论 -
【this指向】之二:类中的this
1.构造函数中的this class Animal { constructor(type) { console.log(this) // this指向Animal的实例对象 this.type = type || 'animal' } run () { console.log('It is running.') } } const Lily = new Animal('cat') 2.子类方法中的this class Dog extends Animal { a原创 2021-06-20 16:00:41 · 239 阅读 · 0 评论 -
【this指向】之一:不同执行环境全局作用域和函数中的this
关于浏览器缓存强制缓存:cache-control,Expires对比缓存:last-modified,Etag 强制缓存:cache-control,Expires Expires是一个绝对时间,即服务器时间。浏览器检查当前时间,如果还没到失效时间就直接使用缓存文件。但是该方法存在一个问题:服务器时间与客户端时间可能不一致。因此该字段已经很少使用。 cache-control中的max-age保存一个相对时间。例如Cache-Control: max-age = 484200,表示浏览器收到文件后,缓存在原创 2021-06-20 14:20:14 · 180 阅读 · 0 评论