parseInt()和parseFloat()位于何处? [英] Where are parseInt() and parseFloat() located?

查看:85
本文介绍了parseInt()和parseFloat()位于何处?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在控制台中点击TAB时,我看到了parseInt()和parseFloat()。

I see parseInt() and parseFloat() when I hit TAB in the console.

我可以输入:

parseInt('123asd');

但这些位于何处?

推荐答案

它们是全局对象的属性。 (内置函数)

They are properties of the global object. (built-in functions)

对于浏览器,这是窗口

这篇关于parseInt()和parseFloat()位于何处?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆