js 的build-in Object , Global 和 Math

本文介绍了JavaScript中的两个内置对象Global和Math。这些对象由ECMAScript提供,并在程序开始执行时出现,无需开发者实例化。文章重点讲解了Global对象的相关概念。
js 中有两个内置对象, Global 和 Math
内置对象的定义:由ECMAScript 实现提供的,独立于宿主环境的对象,在ECMAScript程序
开始执行时出现,开发者不必实例化内置对象,它已被实例化了。
内置对象都是 ECMAScript 本地对象。

[b]Global 对象[/b]
PS E:\tool\robot-project> npm install --global windows-build-tools npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm warn deprecated har-validator@5.1.5: this library is no longer supported npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm warn deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm warn deprecated windows-build-tools@5.2.2: Node.js now includes build tools for Windows. You probably no longer need this tool. See https://github.com/felixrieseberg/windows-build-tools for details. npm error code 1 npm error path D:\node_global\node_modules\windows-build-tools npm error command failed npm error command C:\WINDOWS\system32\cmd.exe /d /s /c node ./dist/index.js npm error Downloading vs_BuildTools.exe npm error [> ] 0.0% (0 B/s) npm error ^[[1000D^[[0K^[[1A^[[1000D^[[0K^[[1A^[[1000D^[[0KDownloading vs_BuildTools.exe npm error [============================================>] 100.0% (0 B/s) npm error ^[[1000D^[[0K^[[1A^[[1000D^[[0K^[[1A^[[1000D^[[0KDownloading vs_BuildTools.exe npm error [============================================>] 100.0% (0 B/s) npm error Downloaded vs_BuildTools.exe. Saved to C:\Users\lijian\.windows-build-tools\vs_BuildTools.exe. npm error npm error Starting installation... npm error Downloading installers failed. Error: TypeError: 'process.env' only accepts a configurable, writable, and enumerable data descriptor npm error at Function.defineProperty (<anonymous>) npm error at Object.remo
03-17
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值