我有以下的javascript object
:编辑JavaScript对象
注:我从我的浏览器控制台
Object
content: "http://localhost/abito/website/secondary_imgs.php?imgId=18&imgTitle=Hugo%20Boss%20Sweat-Top%20-%20Skaz%20in%20Grey&mWidth=593&mHeight=900"
gallery: "New Arrivals"
link: HTMLAnchorElement
options: Object
player: "iframe"
title: "Hugo Boss Sweat-Top - Skaz in Grey(front)"
__proto__: Object
它是由插件Shadowbox.js创建复制这一点,所以我无法控制它的创作。
我的问题是,有什么办法可以编辑Object
的content
部分,然后将它放回Object
?
Object
已被引用到变量c
。我可以参考content
以下内容:var url = c.content
。我不确定的是如何编辑content
,然后将其放回object
以供使用。
在此先感谢您提供的任何帮助。
只需指定它:'c.content =(编辑的内容在这里)'。 –