Most modern browsers have a console in their developer tools, useful for this sort of debugging.(大多数现代的浏览器在其开发人员工具中都有一个控制台,对于此类调试很有用。)
console.log(myvar);
Then you will get a nicely mapped out interface of the object/whatever in the console.(然后,您将在控制台中获得对象/任何对象的映射良好的接口。)
Check out the console
documentation for more details.(查看console
文档以获取更多详细信息。)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…