是的,你可以definatly做到這一點很容易改變的功能是負責渲染詳細信息頁面。
Preview.prototype = {
create : function() {
// create Preview structure:
this.$title = $('<h3></h3>');
this.$description = $('<p></p>');
this.$href = $('<a href="#">Visit website</a>');
this.$details = $('<div class="og-details"></div>').append(this.$title, this.$description, this.$href);
this.$myDiv = $('<div class="my-div"></div>').append("My Injected DIVVVVVVVVVVVVVVVVVVVVVVVVVVV");
this.$loading = $('<div class="og-loading"></div>');
this.$fullimage = $('<div class="og-fullimg"></div>').append(this.$loading);
this.$closePreview = $('<span class="og-close"></span>');
this.$previewInner = $('<div class="og-expander-inner"></div>').append(this.$closePreview, this.$fullimage, this.$myDiv,this.$details);
this.$previewEl = $('<div class="og-expander"></div>').append(this.$previewInner);
// append preview element to the item
this.$item.append(this.getEl());
// set the transitions for the preview and the item
if(support) {
this.setTransition();
}
},
看看我如何注入新的div,它是在詳細信息頁面上可見,如下所示。 
謝謝你的快速回答。但有沒有可能手動編輯每個盒子的html。所以在每個框中是另一個HTML代碼? – Philipp
不,原因是那些htmls divs是通過js動態生成的。 – mitpatoliya
是的,我明白了。但是你不能在.js中寫入它應該從html中的一個不可見的div中獲取div的內容嗎? – Philipp