- 博客(8)
- 收藏
- 关注
原创 前端修改后端返回一个时间戳如何改成2018-12-30 12:00:00
直接献上代码<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title><style> body{ backgroun
2018-12-06 15:57:59
2450
原创 原生JS数组的所有方法
//constructor属性vararr=[];arr.constructor===Array//true//prototype属性Array.prototype.max=function(){varmax=this[0];for(vari=1;ithis.length;
2018-02-01 16:38:56
794
原创 文章为最常见网页的返回顶部原理实现
//返回顶部 $(window).scroll( function (){ if( $(this).scrollTop() >500 ){ $('.return').fadeIn(); }else{ $('.return').fadeOut(); } }); $('.return').click(function(){
2018-02-01 16:18:56
316
原创 图片轮播淡隐淡出js代码逻辑
//图片轮播淡隐淡出var lisize = $('.zong_demark_one_two > div').size();var index = 0 ;var timer;$('.zong_demark').hover(function(){clearInterval(timer)},function(){timer=setInterval(function(){
2018-02-01 16:17:04
359
翻译 点击随着某个位置而弹出的弹出层
框框随着鼠标点击的元素的位置改变而改变 a{ border: 1px solid #0f0; margin: 20px; width: 60px; height: 30px; line-height: 30px; float: left; display:
2018-02-01 16:11:46
2859
原创 一位数组返回id和pid通过这两个参数转换为树形结构数据,和树形结构的渲染
废话不多说直接上代码html代码我是引用了一个jq的插件作为样式插件名字为 jOrgChart 具体内容大家可以评论到下方div class="com"> div class="TheEditor">编辑div> div id='jOrgChart'>div>div>js代码大家把url地址改成你们本地的假数据渲染,$.ajax({ url: url,
2018-02-01 16:06:17
4177
2
原创 事件点击重复执行
1.去除原来绑定监听事件,后在绑定点击事件$('document').unbind('click').click(function() { //dosomething })2.阻止事件冒泡$('document').click(function( event ) { event.stopPropagatio
2018-02-01 15:57:50
410
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人