摘要: <div style="background-color: Black"> ssssss </div> <div style="background-color:Olive"> <form id="form1" runat="server" style="margin:0px"> <div style="background-color: Ye... 阅读全文
posted @ 2009-09-18 17:37 awp110 阅读(377) 评论(0) 推荐(0) 编辑
摘要: concat 方法 (Array)返回一个新数组,这个新数组是由两个或更多数组组合而成的。array1.concat([item1[, item2[, . . . [, itemN]]]])参数array1 必选项。其他所有数组要进行连接的 Array 对象。 item1,. . ., itemN可选项。要连接到 array1 末尾的其他项目。说明concat 方法返回一个 Array 对象,其中... 阅读全文
posted @ 2009-09-18 11:11 awp110 阅读(746) 评论(0) 推荐(1) 编辑
摘要: 我们知道JScript中对象的prototype属性,是用来返回对象类型原型的引用的。我们使用prototype属性提供对象的类的一组基本功能。并且对象的新实例会"继承"赋予该对象原型的操作。但是这个prototype到底是怎么实现和被管理的呢? 对于对象的prototype属性的说明,JScript手册上如是说:所有 JScript 内部对象都有只读的 prototype 属性。可以向其原型中动... 阅读全文
posted @ 2009-09-18 09:11 awp110 阅读(155) 评论(0) 推荐(0) 编辑
摘要: W3C那帮人的脑袋被驴踢了,直到javascript1.8.1才支持trim函数(与trimLeft,trimRight),可惜现在只有firefox3.5支持。由于去除字符串两边的空白实在太常用,各大类库都有它的影子。加之,外国人都很有研究精神,搞鼓了相当多实现。实现11.String.prototype.trim = function() { 2.return this.replace(/^\... 阅读全文
posted @ 2009-09-18 08:53 awp110 阅读(183) 评论(0) 推荐(0) 编辑