![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js语言学习
文章平均质量分 67
zi__kang
本人现在很开心
展开
-
this指针
this指针指向调用当前操作的对象,大大方便了查找对象的难度。一段简单的代码:window.onload = function(){var mes = [1,2,3,4,5,6]]var divList = document.getElementsByClassName('div');for(var i = 0 ;i divList[i].index = i;d原创 2016-08-15 20:10:22 · 313 阅读 · 1 评论 -
使用jQuery实现图片自动轮播
*{margin: 0;padding: 0;}.clear:after{content: "";height: 0;clear: both;overflow: hidden;display: inline-block;}.clear{*zoom: 1;}.content{width: 400px;height: 210px;margin: 20px auto;overflow: hi原创 2016-08-29 19:23:18 · 6508 阅读 · 0 评论 -
JavaScript中的setInterval用法
JavaScript中的setInterval用法setInterval动作的作用是在播放动画的时,每隔一定时间就调用函数,方法或对象。可以使用本动作更新来自数据库的变量或更新时间显示。setInterval动作的语法格式如下:setInterval(function,interval[,arg1,arg2,......argn])setInterval(object,method转载 2016-08-20 22:48:05 · 332 阅读 · 0 评论 -
vuex学习总结
近日由于项目重构用到了vue,我们使用vuex记录状态。开始看着比较懵,查阅大量资料之后对vuex进行一点点总结:store 的四个属性:state, getters, mutations, actions从上面的代码我们也可以看出,一个 store 有四个属性:state, getters, mutations, actions。1、state。state原创 2017-07-14 11:24:31 · 558 阅读 · 0 评论