我想知道javascript heapLib.js库是否也适用于firefox。在我遇到的所有读数中,该库与IE特定方法一起使用。另外,当我在firefox中编写以下代码,然后使用firebug调试代码时,它会在使用特定代码的地方准确地给出错误。
<html>
<body>
<script src="heapLib.js">
</script>
<script type="text/javascript">
var heap= new heapLib.ie(); <--- error at this line
heap.gc();
heap.debugHeap(true);
heap.alloc(512);
heap.alloc("BBBBB","foo");
heap.free("foo");
heap.debugHeap(false);
</script>
</body>
</html>
另外,我在Debian上使用iceweasel,虽然这不应该有太大区别,但我认为不好添加这些信息。
任何帮助将不胜感激。三江源。