javascript(对象.属性)集锦之八
点击次数:22 次 发布日期:2008-11-26 21:53:54 作者:源代码网
|
源代码网整理以下string对象 源代码网整理以下 源代码网整理以下 源代码网整理以下length 字符串的长度,即字符串中字符的个数. 源代码网整理以下 源代码网整理以下big(),blink(),bold(),fixed(),italics(),small(),sub(),strike(),sup(),fontColor(color),fontSize(size) 源代码网整理以下以上方法为字符串增加相应的HTML标记. 源代码网整理以下charAt(index) 返回字符串中index处的字符. 源代码网整理以下indexOf(searchValue,[fromIndex]) 该方法在字符串中寻找第一次出现的searchValue.如果给定了fromIndex,则从 源代码网整理以下字符串内该位置开始搜索,当searchValue找到后,返回该串第一个字符的位置. 源代码网整理以下lastIndexOf(searchValue,[fromIndex]) 从字符串的尾部向前搜索searchValue,并报告找到的第一个实例. 源代码网整理以下substring(indexA,indexB) 获取自indexA到indexB的子串. 源代码网整理以下toLowerCase(),toUpperCase() 将字符串中所有字符全部转换成大写,小写 源代码网供稿. |
