只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-02-28 11:33 春风得意之时 阅读(0) 评论(0) 推荐(0) 编辑
摘要: var Json = { zhebg: function() { var div = $("<div>").addClass("div_obj"); console.log(div); $("body").append(div); var div_obj = $(".div_obj"); var h 阅读全文
posted @ 2017-02-08 00:59 春风得意之时 阅读(201) 评论(0) 推荐(0) 编辑
摘要: //重写alert方法,去掉地址显示window.alert = function(name){ var iframe = document.createElement("IFRAME"); iframe.style.display="none"; iframe.setAttribute("src" 阅读全文
posted @ 2017-02-07 14:23 春风得意之时 阅读(3456) 评论(0) 推荐(0) 编辑
摘要: var json={name:'小谢',age:'28'}var a = [];function extent(child,parent){for(var attr in parent){child[attr]=parent[attr];}}extent(a,json);alert(a.name); 阅读全文
posted @ 2016-12-28 00:22 春风得意之时 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 苹果手机打开的时候点击的瞬间(input标签)出现灰色背景,其他手机好像不会出现灰色背景?求解答,谢谢! 自己找到满意答案了:-webkit-tap-highlight-color:rgba(0,0,0,0);//透明度设置为0,去掉点击链接和文本框对象时默认的灰色半透明覆盖层(iOS)或者虚框(A 阅读全文
posted @ 2016-12-24 23:52 春风得意之时 阅读(1401) 评论(0) 推荐(0) 编辑
摘要: 以你添加的元素为基础!在他的里面!也就是他的内容的前面或者后面添加东西! 如果原来的元素没有内容会出现什么情况?(伪类的宽和高和元素的相等) 阅读全文
posted @ 2016-12-24 17:10 春风得意之时 阅读(146) 评论(0) 推荐(0) 编辑
摘要: <div class="starbox"> <i class="iconfont icon-star1"></i> <i class="iconfont icon-star1"></i> <i class="iconfont icon-star1"></i> <i class="iconfont i 阅读全文
posted @ 2016-12-18 00:16 春风得意之时 阅读(173) 评论(0) 推荐(0) 编辑
摘要: function test(){ var a=b=c=1; var a=1, b=2,c=3; } 1中b\c 为全局变量, a为私量 2中a\b\c为私量 阅读全文
posted @ 2016-12-17 22:47 春风得意之时 阅读(2467) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-12-05 01:08 春风得意之时 阅读(129) 评论(0) 推荐(0) 编辑
摘要: <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,max 阅读全文
posted @ 2016-11-27 00:55 春风得意之时 阅读(260) 评论(0) 推荐(0) 编辑