Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[js] 第572天 字符串从哪里来的split方法和length属性? #3159

Open
haizhilin2013 opened this issue Nov 7, 2020 · 2 comments
Open
Labels
js JavaScript

Comments

@haizhilin2013
Copy link
Collaborator

第572天 字符串从哪里来的split方法和length属性?

3+1官网

我也要出题

@haizhilin2013 haizhilin2013 added the js JavaScript label Nov 7, 2020
@Ari-ZH
Copy link

Ari-ZH commented Nov 9, 2020

按照我的理解来说,字符串本身是没有相关方法的,主要是字符串在调用String相关的方法过程中,js会将string类型转化为String对象,String原型上挂载了响应的方法。 有误解的话还请指正

@Taurues
Copy link

Taurues commented Nov 16, 2020

image
String 原型上就有这些

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
js JavaScript
Projects
None yet
Development

No branches or pull requests

3 participants