中文亚洲精品无码_熟女乱子伦免费_人人超碰人人爱国产_亚洲熟妇女综合网

當前位置: 首頁 > news >正文

做相冊本哪個網(wǎng)站好用嗎短視頻推廣

做相冊本哪個網(wǎng)站好用嗎,短視頻推廣,nba最新交易,漯河網(wǎng)做網(wǎng)站目錄 查找字符串中的特定元素 String.indexOf() (返回索引值) 截取字符串的一部分 .substring() (不影響原數(shù)組)(不允許負值) 截取字符串的一部分 .slice() (不影響原數(shù)…

目錄

查找字符串中的特定元素 String.indexOf()? ? ? ? (返回索引值)

截取字符串的一部分 .substring()? ? ? ? (不影響原數(shù)組)(不允許負值)

截取字符串的一部分 .slice()? ? ? ? (不影響原數(shù)組)(允許負值)

字符串的分段 .split()? ? ? ? (字符串轉(zhuǎn)數(shù)組)(不影響原數(shù)組)

字符串是否以什么開頭/結(jié)尾 .startsWith() .endsWith()

后續(xù)會更新

查找字符串中的特定元素 String.indexOf()? ? ? ? (返回索引值)

? ? ? ? String.indexOf(value,start)? ? ? ? (起始位start可選)

const a = "Blue Whale";
console.log(a.indexOf("Blue"))//0
console.log(a.indexOf(""));//0
console.log(a.indexOf("",14));//10
//當查找的為空字符時,起始位超過字符串本身則返回字符串長度
console.log(a.indexOf("ppop"));//-1
截取字符串的一部分 .substring()? ? ? ? (不影響原數(shù)組)(不允許負值)

? ? ? ? String.substring(startIndex,endIndex)? ? ?(endIndex可選,不寫默認為最后)(取左不取右)

const str = 'Mozilla';
console.log(str.substring(1, 3));
//oz
console.log(str.substring(2));
//zilla
截取字符串的一部分 .slice()? ? ? ? (不影響原數(shù)組)(允許負值)

? ? ? ? String.slice(startIndex,endIndex)? ? ? ? (同上)

const str = 'The quick brown fox jumps over the lazy dog.';
console.log(str.slice(31));
//the lazy dog.
console.log(str.slice(4, 19));
//quick brown fox
字符串的分段 .split()? ? ? ? (字符串轉(zhuǎn)數(shù)組)(不影響原數(shù)組)

? ? ? ? String.split(value)? ? ? ? (返回數(shù)組)(value可選)

const str = 'The quick brown fox jumps over the lazy dog.';
const words = str.split(' ');
console.log(words[3]);
//fox
const chars = str.split('');
console.log(chars[8]);
//k
const strCopy = str.split();
console.log(strCopy);
//["The quick brown fox jumps over the lazy dog."]
字符串是否以什么開頭/結(jié)尾 .startsWith() .endsWith()

? ? ? ? String.startsWith(value,[startIndex])? ? ? ? (返回布爾值)(不允許負值)

????????String.endsWith(value,[endIndex])?

const str1 = 'Saturday night plans';
console.log(str1.startsWith('Sat'));
// true
console.log(str1.startsWith('Sat', 3));
// false
console.log(str1.endsWith('plans'));
// true
console.log(str1.endsWith('plan', 19));
// true

http://www.risenshineclean.com/news/52889.html

相關(guān)文章:

  • 制作網(wǎng)站公石家莊谷歌seo
  • 做公司網(wǎng)站需要會什么一鍵優(yōu)化表格
  • 有哪些做微博長圖網(wǎng)站澤成seo網(wǎng)站排名
  • 辦文明網(wǎng)站 做文明網(wǎng)民活動關(guān)鍵詞查詢網(wǎng)
  • 網(wǎng)絡推廣文案案例鄭州網(wǎng)站seo優(yōu)化公司
  • wordpress黑桃錘擊河北seo網(wǎng)絡推廣
  • 建設銀行網(wǎng)站查詢密碼怎么開通seo的宗旨是什么
  • 廣州新際網(wǎng)站建設公司怎么樣世界球隊最新排名
  • 泰安網(wǎng)站建設公司seo個人優(yōu)化方案案例
  • 網(wǎng)站開發(fā)得花多少錢營業(yè)推廣是一種什么樣的促銷方式
  • 軟件開發(fā)項目實施方案網(wǎng)站seo服務商
  • php做視頻直播網(wǎng)站信息流廣告投放工作內(nèi)容
  • 普通的訂閱號怎么做微網(wǎng)站泉州搜索推廣
  • 工程造價材料信息網(wǎng)山東seo推廣
  • 怎么樣創(chuàng)辦一個網(wǎng)站如何在國外推廣自己的網(wǎng)站
  • 專業(yè)酒店設計網(wǎng)站建設廣州網(wǎng)站快速排名
  • 騙子為啥使用香港服務器seo網(wǎng)站管理
  • dw班級網(wǎng)站建設全國疫情最新情況公布
  • jsp網(wǎng)站開發(fā)實例精講seo外包方案
  • 網(wǎng)站空間 php程序谷歌瀏覽器下載手機版中文
  • 網(wǎng)站制作價格 上海百度網(wǎng)頁推廣怎么做
  • poco攝影網(wǎng)win10優(yōu)化大師官網(wǎng)
  • 撤銷網(wǎng)站備案企業(yè)qq手機版
  • 做時時彩網(wǎng)站平臺有哪些淘寶指數(shù)查詢工具
  • 建筑模板尺寸關(guān)鍵詞優(yōu)化營銷
  • 怎么樣建設一個網(wǎng)站關(guān)鍵詞排名優(yōu)化報價
  • 從化網(wǎng)站建設適合網(wǎng)絡營銷的產(chǎn)品
  • 佛山免費建站找哪家廣告推廣公司
  • 西安西郊網(wǎng)站建設搜什么關(guān)鍵詞你都懂的
  • 海口網(wǎng)站運營托管費用windows優(yōu)化大師官方免費