JavaScript“计数器”对象,是什么? [英] JavaScript "Counter" object, what is it?

查看:172
本文介绍了JavaScript“计数器”对象,是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚注意到WebKit和Firefox在窗口中定义了一个名为Counter的全局变量。任何想法是什么?



在Chrome浏览器中,它看起来像这样:

 计数器:函数Counter(){[native code]} 

这个变量是不存在的IE浏览器(测试版本10)

解决方案

http://blog.peschla.net/doxygen/v8_chromium_r157275/v8-counters_8h.html



我相信这是说计数器是垃圾收集,计算任何给定数据的引用数量。直接或间接来帮助它创建一个更准确的指针来调用数据或从缓存中释放数据?纠正我,如果我错了,我是新的..这是更有趣的谷歌比学习。


I just noticed by accident that WebKit and Firefox define a global variable called "Counter" in the window. Any idea of what this is?

On Chrome, it appears as such in the watch:

Counter: function Counter() { [native code] }

Note: this variable is not present on IE (tested with version 10)

解决方案

http://blog.peschla.net/doxygen/v8_chromium_r157275/v8-counters_8h.html

I believe this is saying counters is for garbage collection, counting the number of references to any given data. Direct or Indirect to help it create a more accurate pointer for recalling that data or releasing it from cache? correct me if i am wrong, I am new..It was just more fun to google than to study.

这篇关于JavaScript“计数器”对象,是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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