摘要: 1、获取计算后的样式:currentStyle ie所支持的获取非行间样式的方法 用法:对象.currentStyle.样式名 例:oDiv.currentStyle.widthgetComputedStyle 非ie所支持的获取非行间样式的方法 用法:getComputedStyle(对象,伪类).样式名 例:getComputedStyle(oDiv,null).colorfunction getStyle(obj,styleName){ if (obj.currentStyle){ return obj.currentStyle[style... 阅读全文
posted @ 2014-03-12 17:13 Ι Believe 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 字符串的操作方法:charAt()->传入下标,返回字符串里面下标相对应的值;charCodeAt()->传入下标,返回相应字符在万国码里的编码;例子: Document indexOf()—获取制定字符的下标值(丢一个值,返回下标,找不到返回-1),例子:Documentjoin(”分隔符“)—将数组转换为字符串。无标题文档split(”分隔符“):以这个分隔符将字符串转换为数组 Document 数组的splice(从哪里开始删除,删除几个,替换成谁); Document 字符串 substring(截取的... 阅读全文
posted @ 2014-03-12 16:16 Ι Believe 阅读(109) 评论(0) 推荐(0) 编辑