2015年8月25日

js string的一些操作

摘要: 1. charAt();如果想获取字符编码,则:charCodeAt();var stringValue ="hello world";alert(stringValue.charAt(4);//"o"2. 字符串操作:concat(),可接受任意参数和“+”类似.3. 字符串操作:slice(),... 阅读全文

posted @ 2015-08-25 16:41 fishyk 阅读(3381) 评论(0) 推荐(0) 编辑

导航