06 2012 档案

摘要:检测变量\值属于某个类型Object.prototype.toString.call('xiaohui') //'[object String]'Object.prototype.toString.call(108) //'[object Number]'Object.prototype.toString.call(null) //'[object Null]'Object.prototype.toString.call({name:'xiaohui',age:108}) //'[object Object 阅读全文
posted @ 2012-06-18 15:46 xiaoxiaohui 阅读(187) 评论(0) 推荐(0)
摘要:在页面中引用样式只有三种方式:1.通过link引用外链形式var styles = document.createElement('link')styles.rel = 'styleSheet'styles.type = 'text/css'styles.href = 'http://xxoo.com/c.css'document.getElementsByTagName('head')[0].appendChild(styles)这种方式主要是用与样式比较多的情况,长篇大论的时候2.通过style标签来添加IE和 阅读全文
posted @ 2012-06-13 17:53 xiaoxiaohui 阅读(2118) 评论(0) 推荐(0)