通过indexOf()查找某个字符串位置
摘要:
AS。的// 循环直到indexOf()返回-1while ( ( index = example.indexOf( "cool", index + 1 ) ) != -1 ) {/* 显示:String contains word cool at index 30String contains word cool at index 41String contains word cool at index 52*/trace( "String contains word cool at index " + index );}兄弟伙推荐个团购导航http: 阅读全文
posted @ 2008-10-30 14:41 人非木 阅读(832) 评论(0) 推荐(0) 编辑