摘要: //组合构造函数+原型模式function Box(name,age){ //保持独立的用构造函数 this.name = name; this.age = age; this.family = ['哥哥','姐姐','妹妹']};Box.prototype ... 阅读全文
posted @ 2014-08-17 16:43 little fly 阅读(118) 评论(0) 推荐(0) 编辑
摘要: //原型创建对象function Box(){};Box.prototype.name = 'Lee';Box.prototype.age = 100;Box.prototype.run = function(){ return this.name + this.age + 'running.... 阅读全文
posted @ 2014-08-17 15:11 little fly 阅读(176) 评论(0) 推荐(0) 编辑
摘要: //构造函数创建对象function Box(name,age){ //创建一个对象 this.name = name; //添加一个属性 this.age = age; this.run = function(){ return this... 阅读全文
posted @ 2014-08-17 14:53 little fly 阅读(447) 评论(0) 推荐(0) 编辑
摘要: HTML代码 waterFall 11111111111 22222222222 ... 阅读全文
posted @ 2014-07-07 18:48 little fly 阅读(263) 评论(0) 推荐(0) 编辑
摘要: html源代码popWindow 显示窗口 弹出窗口的标题关闭 弹出窗口的内容 --> js代码$(function(){ var oBtn = $('#show'); var popWindow = $('.pop... 阅读全文
posted @ 2014-04-26 23:06 little fly 阅读(493) 评论(0) 推荐(0) 编辑
摘要: HTML源代码拖拽实例 CSS源代码*{ margin: 0; padding:0;}div{ width: 100px; height: 100px; background: #f00; cursor: pointer; position: abso... 阅读全文
posted @ 2014-04-20 23:52 little fly 阅读(452) 评论(0) 推荐(0) 编辑
摘要: Document 一级菜单 二级菜单 三级菜单 ... 阅读全文
posted @ 2014-04-20 21:24 little fly 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 图片轮播效果 1 2 3 4 要记着把ul的overflow:hidden去掉,一开始测试的时候加上的,后来测试怎么都不对,最后发现时这个问题,要记牢... 阅读全文
posted @ 2014-04-20 17:03 little fly 阅读(574) 评论(0) 推荐(0) 编辑
摘要: 多张图无缝滚动 向左走 向右走 阅读全文
posted @ 2014-04-13 22:16 little fly 阅读(666) 评论(0) 推荐(1) 编辑
摘要: tab选项卡 xhtml css jquery xhtml的内容 css的内容 jQuery的内容 阅读全文
posted @ 2014-04-13 16:38 little fly 阅读(237) 评论(0) 推荐(0) 编辑