I am doing a console.log statement in my javascript in order to log a javascript object.
(我在我的javascript中做一个console.log语句,以便记录一个javascript对象。)
I'm wondering if there's a way, once that's done - to copy that object as javascript code.(我想知道是否有办法,一旦完成 - 将该对象复制为javascript代码。)
What I'm trying to do is convert an object that was created using ajax to parse an xml feed into a static javascript object so that a file can run locally, without a server.(我要做的是转换使用ajax创建的对象将xml提要解析为静态javascript对象,以便文件可以在本地运行,而无需服务器。)
I've included a screenshot of the object in the chrome inspector window so you can see what I'm trying to do.(我在chrome检查器窗口中包含了对象的屏幕截图,以便您可以看到我正在尝试做的事情。)
ask by mheavers translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…