当前位置:网站首页>How to determine whether the current script is in the node environment or the browser environment?
How to determine whether the current script is in the node environment or the browser environment?
2022-07-02 00:51:00 【Vegetable seller Xiaobai】
Determine the environment of the current script , Can be judged Global Whether the object is window, If yes, it indicates that the current environment is a browser environment , If not, it means that the current environment is node Environmental Science .
this === window ? "browser" : "node"
边栏推荐
- Leetcode skimming: stack and queue 05 (inverse Polish expression evaluation)
- js 公共库 cdn 推荐
- Deb file installation
- [eight sorting ③] quick sorting (dynamic graph deduction Hoare method, digging method, front and back pointer method)
- 智能运维实战:银行业务流程及单笔交易追踪
- 工作中非常重要的测试策略,你大概没注意过吧
- 启牛商学院给的证券账户安不安全?哪里可以开户
- You probably haven't noticed the very important testing strategy in your work
- Friends circle community program source code sharing
- Guide d'installation du serveur SQL
猜你喜欢

JMeter做接口测试,如何提取登录Cookie

Take the enclave Park as a sample to see how Yuhua and Shaoshan play the song of Chang Zhu Tan integrated development

Leetcode question brushing: stack and queue 07 (maximum value of sliding window)

Graduation season | Huawei experts teach the interview secret: how to get a high paying offer from a large factory?

【底部弹出-选择器】uniapp Picker组件——底部弹起的滚动选择器

九州云与英特尔联合发布智慧校园私有云框架,赋能教育新基建

Geek DIY open source solution sharing - digital amplitude frequency equalization power amplifier design (practical embedded electronic design works, comprehensive practice of software and hardware)

JS -- image to base code, base to file object

Excel PivotTable

sso单点登录的实现。
随机推荐
UVM tutorial
【会议资源】2022年第三届自动化科学与工程国际会议(JCASE 2022)
【CTF】bjdctf_2020_babystack2
Basis of deep learning neural network
AIX存储管理之总结篇
Powerful calendar wechat applet source code - support the main mode of doing more traffic
Advanced skills of testers: a guide to the application of unit test reports
UDS bootloader of s32kxxx bootloader
2023 Lexus ES products have been announced, which makes great progress this time
Leetcode skimming: stack and queue 02 (realizing stack with queue)
To meet the needs of consumers in technological upgrading, Angel water purifier's competitive way of "value war"
[cascade classifier training parameters] training Haar cascades
Node——Egg 实现上传文件接口
AIX存储管理之逻辑卷的创建及属性的查看和修改
King combat power query renamed toolbox applet source code - with traffic main incentive advertisement
2022 low voltage electrician examination questions and answers
Practical calculation of the whole process of operational amplifier hysteresis comparator
SQL Server Installation Guide
Promise and modular programming
Mitsubishi PLC FX3U pulse axis jog function block (mc_jog)