This ensures that repeated use of the same constant strings in your code will utilize the same string reference.
这可以确保在代码中重复使用相同的常量字符串时,可以利用相同的字符串引用。
They hold only one piece of data: a string, a number, the undefined value, a reference to another variable.
它只保存一段数据:一个字符串、一个数字、未定义的值以及对另一个变量的引用。
Finally, the string type is a reference type, so every string instance refers to an additional block of memory to hold the actual string data.
最后,字符串类型是引用类型,因此每个字符串实例都引用一个附加的内存块,以存放实际的字符串数据。
应用推荐