js基础知识点
字符串截取
- substr(start,length)–被逐渐废弃的api,不建议使用
- substring(start,end) start或者end为负变为0;start>end位置互换
- slice(start,end) start、end为负变为length+start
原文作者:zhanghy7
原文链接:http://zhanghy7.github.io/2019/03/12/js基础知识点/
发表日期:March 12th 2019, 10:48:32 am
更新日期:March 12th 2019, 11:41:25 am
版权声明:本文采用知识共享署名-非商业性使用 4.0 国际许可协议进行许可
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: true
tags: true