//https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String
//返回对应索引的字符
chartAt()
//返回对应所引的字符的统一码(Unicode value)
charCodeAt()
//Returns a non-negative integer that is the UTF-16 encoded code point value at the given position.
codePointAt();
//拼接两个字符串,并返回一个新的字符串
concat();
//Determines whether one string may be found within another string.
includes();
//Determines whether a string ends with the characters of another string.
endsWidth();
//返回一个字符串在另一个字符串中首次出现的位置,如果查找不到,返回-1
indexOf();
//返回一个字符串在另一个字符串中末次出现的位置,如果查找不到,返回-1
lastIndexOf();
//Returns a number indicating whether a reference string comes before or after or is the same as the given string in sort order.
localeCompare();
//用字符串匹配一个字符串
mach();
//Returns the Unicode Normalization Form of the calling string value.
normalize();
//Returns a string consisting of the elements of the object repeated the given times.
repeat();
//找出字符串中和正则表达式匹配的部分,并用一个新的子串替换
replace();
//找出字符串中和正则表达式匹配的部分
search();
//截取字符串的一部分返回
slice();
//把一个字符串分割成数组,分割点为传入的子串
split();
//Returns the characters in a string beginning at the specified location through the specified number of characters.
substr();
//
substring(); //
toLocalLowerCase(); // toLocalUpperCase(); toLowerCase();
toSource(); toString();
toUpperCase();
trim();
valueOf();

js String方法集合的更多相关文章

  1. react.js 公共方法 集合

    截取七牛上传图片的后缀名: export function getInputKey(info){ let self = this; let obj = JSON.parse(info); let qi ...

  2. js String方法总结

    字符方法(3) charAt(pos: number): string; // 返回特定位置的字符. charCodeAt(index: number): number; // 返回表示给定索引的字符 ...

  3. js操作textarea方法集合

    <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"% ...

  4. Js获取后台集合List的值和下标的方法

    Js获取后台集合List的值和下标的方法 转载自:http://blog.csdn.net/XiaoKanZheShiJie/article/details/47280449 首先用的是struts2 ...

  5. 2、C#面向对象:封装、继承、多态、String、集合、文件(上)

    面向对象封装 一.面向对象概念 面向过程:面向的是完成一件事情的过程,强调的是完成这件事情的动作. 面向对象:找个对象帮你完成这件事情. 二.面向对象封装 把方法进行封装,隐藏实现细节,外部直接调用. ...

  6. jquery.validate.min.js 用法方法示例

    页面html 代码 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://w ...

  7. JS扩展方法——字符串trim()

    转自:http://www.cnblogs.com/kissdodog/p/3386480.html <head> <title>测试JS扩展方法</title> ...

  8. Js apply 方法 详解

    Js apply方法详解 我在一开始看到JavaScript的函数apply和call时,非常的模糊,看也看不懂,最近在网上看到一些文章对apply方法和call的一些示例,总算是看的有点眉目了,在这 ...

  9. JS trim()方法使用

    JS trim()方法使用上有浏览器限制: 1.直接使用 string.trim() 浏览器版本限制:JavaScript Version 1.8  2.间接使用<即自己使用正则构造类trim的 ...

随机推荐

  1. ajax:$.get()

    提要: $.get("异步文件",数值,回调函数); 加载XML文档 a.xml <?xml version="1.0" encoding="U ...

  2. Android videoview循环播放视频

    如何在一个activity里实现videoview对一个文件夹下的所有视频文件顺序循环播放,当切换界面时暂停, 切换回来继续原来的视频播放呢.所谓的 自动循环播放就是监听到视频播放结束之后继续重新播放 ...

  3. 在MAC中安装XMPP服务器

    一.安装MySQL 1.下载安装包

  4. BackgroundWorker组件学习

    今天看到别人的博客中提到了BackgroundWorker组件.在现在的系统中有见到过这个组件,由于实际应用的系统中逻辑比较复杂所以也没深入去看.今天凑巧看到了一个关于BackgroundWorker ...

  5. Jquery正则表达式公式.例子

    1.非负整数         /^\d+$/     2.正整数           /^[0-9]*[1-9][0-9]*$/     3.非正整数       /^((-\d+)|(0+))$/  ...

  6. Idea 使用maven+tomcat的时候,编译指定的Profile

    To build a artifact with a profile you have to create a Maven Run/Debug configuration as in the foll ...

  7. apache 配置用户级目录

    如果你只需要在用户目录下使用apache的话,还有一个最简单的方式,直接将 httpd.conf文件下的 DocumentRoot "/Library/WebServer/Documents ...

  8. Gson解析POJO类中的泛型参数

    在开发Android与API交互的时候,使用Json格式传输,遇到了这样一个情况,返回数据格式POJO类如下: public class ApiResult<T> { private in ...

  9. 基于百度地图js进行地理定位

    http://www.mengxiangchaoren.com/jquery.select.position.min.js 使用方法 $("#myCity").renderSele ...

  10. UVa (BFS) The Monocycle

    题目不光要求要到达终点而且要求所走的步数为5的倍数,每个时刻有三个选择,前进,左转弯,右转弯. 所以在vis数组中新增加两个维度即可,vis[x][y][dir][color]表示在(x, y)格子方 ...