摘要: ``` //==回调地狱的解决方法 , 实际的业务问题:我们需要按顺序获取:产品数据=>用户数据=>评论数据 //1.传统的写法: // 获取产品数据 ajax('products.json', (products) => { console.log('AJAX/products >>>', JSON.parse(products)); // 获取用户数据 ... 阅读全文
posted @ 2019-05-29 14:36 QiuYuLing 阅读(460) 评论(0) 推荐(0) 编辑
摘要: 基本思路: 1. 父元素弹性布局和适配屏幕。 2. 子元素,固定宽度, 内容元素,固定宽度,适当使用弹性布局(。。。旧年代用float:left 浮动元素。。。。)。 阅读全文
posted @ 2019-05-08 16:53 QiuYuLing 阅读(352) 评论(0) 推荐(0) 编辑
摘要: ``` $(".time>span").click(function(){ console.log(this); $(this).css({'color':'#03FDFC'}); //选中的效果 $(this).siblings().css({'color':'#FFF'}); //没选中的效果 }) ``` 阅读全文
posted @ 2019-05-06 10:57 QiuYuLing 阅读(420) 评论(0) 推荐(0) 编辑
摘要: ``` d3.js 的cdn地址 ``` 阅读全文
posted @ 2019-05-06 10:57 QiuYuLing 阅读(1256) 评论(0) 推荐(0) 编辑
摘要: ``` //开关切换 无状态值切换 $("#swich_op").click(function(){ console.log($(this).attr("src")); if($(this).attr("src") == "static/security_img/on.png"){ $(this).attr("src","... 阅读全文
posted @ 2019-05-06 10:55 QiuYuLing 阅读(537) 评论(0) 推荐(0) 编辑
摘要: ``` //气泡图 var myChart_qipao = echarts.init(document.getElementById('_scatter_')); //暂时的假数据 var data = [ [[50,200,50,'自动化运维',1],[150,643,100,'自动化运维',1],[200,843,100,'自动化运维',1]],... 阅读全文
posted @ 2019-05-05 16:00 QiuYuLing 阅读(9592) 评论(0) 推荐(0) 编辑
摘要: 1. 该问题的原因就是web 根元素的fontsize值,没有固定。所以才会导致页面rem的值不固定,从而闪现布局。 2. 解决方案就是在网页加载之前就把,fontsize值计算好并且固定住,就能解决。 阅读全文
posted @ 2019-04-22 14:49 QiuYuLing 阅读(944) 评论(0) 推荐(0) 编辑
摘要: 1. 做echart最好的方法,从需求出发,查看文档配置项。一边查阅,一边实现功能。一些特殊功能实现,就另说了。 2. 3. 阅读全文
posted @ 2019-04-19 11:36 QiuYuLing 阅读(473) 评论(0) 推荐(0) 编辑
摘要: 试过,比较能匹配到移动端屏幕 阅读全文
posted @ 2019-03-06 18:20 QiuYuLing 阅读(2619) 评论(0) 推荐(0) 编辑
摘要: html css 效果图 阅读全文
posted @ 2019-03-06 11:15 QiuYuLing 阅读(2129) 评论(0) 推荐(0) 编辑