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
阅读全文
摘要:在页面中引用样式只有三种方式: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和
阅读全文
浙公网安备 33010602011771号