摘要:
We have seen two distinct principles for functional programming: Don't alter a variable or object - create new variables and objects and return them i 阅读全文
摘要:
.indexOf()用来判断在一个字符串里是否含有另一个字符串。 如果含有,那么返回值表示的是含有字符串的位置,即从第几个字母开始为匹配的字符串; 如果没有,那么返回值为-1。 实例一: let text = "Hello world, welcome to the universe.";let r 阅读全文