会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
生命不息 Coding不止
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
12
下一页
2013年12月8日
javascript中的一些偏门知识
摘要: undefined能够被重写undefined = "now it's defined";alert( undefined );浏览器测试结果:浏览器测试结果结论ienow it's defined可以改变firefoxundefined不能改变chromenow it's defined可以改变operanow it's defined可以改变
阅读全文
posted @ 2013-12-08 22:04 金帛
阅读(182)
评论(0)
推荐(0)
2013年12月3日
Git使用
摘要: 使用 Git Bash自动生成秘钥打开Git Bash,输入 ssh-keygen,一直按回车,就会生成一个公共秘钥和一个私有的秘钥
阅读全文
posted @ 2013-12-03 15:24 金帛
阅读(149)
评论(0)
推荐(0)
2013年11月26日
IE jquery mouseenter,mouseover超奇葩问题
摘要: 做了个项目,结构很简单 RAMAD莱蒙达 RAMAD介绍 RAMAD理念 品牌历史 品牌历史 ...
阅读全文
posted @ 2013-11-26 14:20 金帛
阅读(406)
评论(0)
推荐(0)
2013年11月22日
判断客户端版本
摘要: function detectBrowser(ns){ var ua = ns.ua = navigator.userAgent; ns.isWebKit = (/webkit/i).test(ua); ns.isMozilla = (/mozilla/i).test(ua); ns.isIE = (/msie/i).test(ua); ns.isFirefox = (/firefox/i).test(ua); ns.isChrome = (/chrome/i).test(ua); ...
阅读全文
posted @ 2013-11-22 10:18 金帛
阅读(278)
评论(0)
推荐(0)
2013年9月5日
微软雅黑字体IE6 opacity改变,字体会变样子
摘要: 微软雅黑字体IE6 opacity改变,字体会变样子,换个字体就好了
阅读全文
posted @ 2013-09-05 10:02 金帛
阅读(196)
评论(0)
推荐(0)
2013年8月14日
面向对象的程序设计(十一)继承的深入了解,了解他的作用
摘要: Document 继承能做到不破坏原型链上的方法前提下,重写其中的一些方法,而且并不影响原型链上其他的实例
阅读全文
posted @ 2013-08-14 16:54 金帛
阅读(200)
评论(0)
推荐(0)
2013年8月8日
html5中viewport使用
摘要: html5中viewport使用转载自:http://www.maoegg.com/the-usage-of-viewport-in-html5/用html5开发移动应用时往往会遇到手机的分辨率或屏幕大小不同的问题,如何使我们开发出来的应用或页面大小能适合各种手机呢?html5中的viewport能帮你做到。viewport 语法介绍:参数解释:width—-控制 viewport 的大小,可以指定的一个值或者特殊的值,如 device-width 为设备的宽度(单位为缩放为 100% 时的 CSS 的像素)。height—-和 width 相对应,指定高度。target-densitydpi
阅读全文
posted @ 2013-08-08 14:03 金帛
阅读(399)
评论(0)
推荐(0)
2013年7月22日
Array.prototype.slice.call(arguments) 类数组转成真正的数组
摘要: Array.prototype.slice.call(arguments)我们知道,Array.prototype.slice.call(arguments)能将具有length属性的对象转成数组,除了IE下的节点集合(因为ie下的dom对象是以com对象的形式实现的,js对象与com对象不能进行转换)如:1 var a={length:2,0:'first',1:'second'};2 Array.prototype.slice.call(a);// ["first", "second"]3 4 var a={lengt
阅读全文
posted @ 2013-07-22 23:14 金帛
阅读(548)
评论(0)
推荐(0)
2013年7月13日
获取计算的样式
摘要: function getStyle(obj, attr) { //注意:有些属性浏览器没有默认样式,必须确保css中设置了才能获取到,否则有可能出错 if (obj.currentStyle) {//IE return obj.currentStyle[attr]; } else {//FF, chrome return getComputedStyle(obj, false)[attr]; }}
阅读全文
posted @ 2013-07-13 09:04 金帛
阅读(151)
评论(0)
推荐(0)
2013年7月11日
页面加载完时再动态添加脚步
摘要: //页面加载时不存在,加载完时再添加function loadScript(url) {//外部文件 var script = document.createElement("script"); script.type = "text/javascript"; script.src = url; document.body.appendChild(script);}function loadScriptString(code) {//行内样式 var script = document.createElement("script");
阅读全文
posted @ 2013-07-11 14:53 金帛
阅读(173)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
12
下一页
公告