zoukankan      html  css  js  c++  java
  • javascrit string split escape()

    Split a string into an array of substrings:

    string.split(separator,limit) limit表示最大的数组元素个数。

    : If an empty string ("") is used as the separator, the string is split between each character.

    Use a letter as a separator:

    var str="How are you doing today?";
    var n=str.split("o");

    The result of n will be an array with the values:

    H,w are y,u d,ing t,day?
     

    The escape() function encodes a string.

    This function makes a string portable, so it can be transmitted across any network to any computer that supports ASCII characters.

  • 相关阅读:
    React简介
    webpack处理项目中的资源文件
    ajax
    DOW
    webpack-css单独打包配置
    SSH配置
    html-webpack
    常用ui
    git命令备忘
    关于git的一些使用
  • 原文地址:https://www.cnblogs.com/youxin/p/2664686.html
Copyright © 2011-2022 走看看