nodejs
  • 简介
  • 开发规范 & 基础
  • PM2 常用命令与监控
  • 自我经验提示
  • js常用操作
  • 资料
Powered by GitBook
On this page

Was this helpful?

js常用操作

Previous自我经验提示Next资料

Last updated 5 years ago

Was this helpful?

1.去掉最后一个字符

console.log(("0,1,2,3,4,5,".slice(0,-1)))

2.

3.

var str = "123";
console.log(str.indexOf("3") != -1 );  // true
js删除字符串的最后一个字符三种方法
js去掉最后一个字符
js 数组 : 差集、并集、交集、去重、多维转一维
js 判断字符串中是否包含某个字符串