上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 23 下一页
摘要: 1. 正则表达式——处理字符模式的对象;2. 阅读全文
posted @ 2015-10-25 12:43 Coca-code 阅读(167) 评论(0) 推荐(0)
摘要: 一. js中共6个属性描述符1. value2. writable3. configurable //定义是否可以删除4. enumerable //是否可以迭代(遍历打印)5. get6. set-------------------------------------------------... 阅读全文
posted @ 2015-10-25 10:41 Coca-code 阅读(148) 评论(0) 推荐(0)
摘要: 1./***********************************我们通常可以对类的原型添加方法,以此:*达到扩展的目的,现在要禁止这种扩展。只*需Object.preventExtentions();***********************************/Object.p... 阅读全文
posted @ 2015-10-23 23:18 Coca-code 阅读(319) 评论(1) 推荐(0)
摘要: /*清除浮动代码*/ .clearfloat:after{display:block;clear:both;content:"";visibility:hidden;height:0} .clearfloat{zoom:1} Left Right div... 阅读全文
posted @ 2015-10-23 21:58 Coca-code 阅读(168) 评论(0) 推荐(0)
摘要: 1.方法调用模式;形如:var dog = { name: "aWang", speak: function(){ //to do }};dog.speak();-----------------------------------------------------------... 阅读全文
posted @ 2015-10-22 22:44 Coca-code 阅读(145) 评论(0) 推荐(0)
摘要: 1. /b //后退一格2. /f //换页3. /n //换行4. /r //返回5. /t //制表符6. /' //单引号7. /“ //双引号8. / //反斜杠 阅读全文
posted @ 2015-10-21 21:04 Coca-code 阅读(155) 评论(0) 推荐(0)
摘要: 一.ES5中的类1. 让属性不可枚举,即让属性不被遍历到。Object.defineProperties();2. 定义不可变的类:Object.create();3. 封装对象状态:即将状态写在全局数组中。 阅读全文
posted @ 2015-10-19 21:54 Coca-code 阅读(275) 评论(0) 推荐(1)
摘要: screenX:鼠标在显示屏幕上的坐标。clientX:鼠标在页面显示区域的坐标。(FF是pageX;)pageX:... ...layerX:FF特有,父容器border的左上角... ...(可用offsetX代替)offsetX:IE特有;鼠标距离“触发事件元素位置”距离... ...offs... 阅读全文
posted @ 2015-10-15 01:03 Coca-code 阅读(216) 评论(0) 推荐(0)
摘要: var array1 = [1,2]; var array2 = [3,4]; array1.push(5,6);//[1,2,5,6] array1.push([7,8]);//[1,2,5,6,[7,8]] Array.prototype.push.apply(array1,array2);... 阅读全文
posted @ 2015-10-14 23:47 Coca-code 阅读(185) 评论(0) 推荐(0)
摘要: 1. 存在三种事件模型:原始事件模型(所有浏览器都支持)、dom2(除ie外的浏览器都支持)事件模型、IE事件模型、Netscape事件模型。-------------------------------------------------------------------------------... 阅读全文
posted @ 2015-10-09 14:29 Coca-code 阅读(2934) 评论(1) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 23 下一页