上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 24 下一页
摘要: 1 function baseObject(){2 this.shit = function(){ alert('fuck'); }3 }4 function abc(){5 baseObject.call(this);6 }7 var o = new abc();8 console.log(o.shit) 阅读全文
posted @ 2012-05-23 16:44 小猩猩君 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> 3 <head> 4 <meta http-equiv="Content-Type" co 阅读全文
posted @ 2012-05-19 20:34 小猩猩君 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html;ch 阅读全文
posted @ 2012-05-19 13:36 小猩猩君 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html;ch 阅读全文
posted @ 2012-05-19 11:34 小猩猩君 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html;ch 阅读全文
posted @ 2012-05-19 10:53 小猩猩君 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 先上代码:1 var supportsTraversals = document.implementation.hasFeature("Traversal", "2.0");2 var supportsNodeIterator = (typeof document.createNodeIterator == "function");3 var supportsTreeWalker = (typeof document.createTreeWalker == "function");4 console.log(sup 阅读全文
posted @ 2012-05-19 10:05 小猩猩君 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 1 function dateFormat(optioner) {2 var a = new Date,b;3 return [a.getFullYear(), (b = (a.getMonth() + 1), b > 10 ? b : '0' + b), a.getDate()].join(optioner);4 }5 console.log(dateFormat('/')); 阅读全文
posted @ 2012-05-18 15:50 小猩猩君 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html;ch 阅读全文
posted @ 2012-05-17 14:50 小猩猩君 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 加入了浏览器判断 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="tex 阅读全文
posted @ 2012-05-16 21:23 小猩猩君 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 内外边距一定要初始化,不然有些浏览器下取值要悲剧了 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" 阅读全文
posted @ 2012-05-16 21:00 小猩猩君 阅读(369) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 24 下一页