[英]What is different between chrome dev-tools and Firefox dev-tools?
我是 JavaScript 的新手,我在控制台上寫了這個 js 代碼:`
function test (){}
var a1 = new test();
a1;//chrome dev-tool test()
a1;// firefox dev-tool : object {}
`
並在chrome dev-tool和Firefox dev-tool上運行它,我看到了不同的結果。
1.在 chrome w: 測試{}
2.in Firefox:對象{}
chrome is essentially saying {} is an empty object that was constructed by a function with name test.Firefox is saying {} is an empty object of general construction from Object.the subtle difference is that Chrome is actively tracking,as an internal property,進行構造的實際 function 的名稱,而其他瀏覽器不跟蹤該附加信息。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.