标准库
除了 API 中介绍的全局变量之外,沙盒化 JavaScript 还支持内置类型中的以下方法。
数组
字符串
对象
布尔值
数字
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-02-06。
[null,null,["最后更新时间 (UTC):2024-02-06。"],[[["Sandboxed JavaScript environments support a specific set of methods for built-in types like Array, String, Object, Boolean, and Number, in addition to the global APIs."],["Supported Array methods include common operations such as concat, every, filter, forEach, indexOf, join, map, pop, push, reduce, reverse, slice, sort, splice, and more."],["For Strings, methods like charAt, concat, indexOf, lastIndexOf, match, replace, slice, split, substring, toLowerCase, toUpperCase, and trim are available."],["Object, Boolean, and Number types primarily support the toString method within this sandboxed environment."],["Developers can refer to the provided links for detailed documentation and usage examples of each supported method from Mozilla Developer Network."]]],[]]