我有以下的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 =(編輯的內容在這裏)'。 –