1
A
回答
1
當應用對行(tr
)屬性,他們只是通過插件忽略(如你有經驗的),不管他們是(樣式,類,數據...)。
它似乎是自願的,因爲通常會提取行的屬性的代碼片段在插件源中進行了註釋。
在該方法中readTableSection
,我們(我刪除的代碼在這裏不相關的線):
readTableSection: function(table, section, readAttributes) {
...
if (table && (section = this.getTableSection(table, section))) {
for (ri = 0, rowLen = section.rows.length; ri < rowLen; ri++) {
row = section.rows[ri];
tmp = [];
if (readAttributes) {
// here normally the html attributes of the rows (<tr>) should be extracted
// but the code is commented !
tmp.rowAttributes = null; // $.wijmo.wijgrid.getAttributes(row);
tmp.cellsAttributes = [];
}
// here is extracted the html attributes for the cells (<td>)
for (ci = 0, celLen = row.cells.length; ci < celLen; ci++) {
tmp[ci] = row.cells[ci].innerHTML;
if (readAttributes) {
tmp.cellsAttributes[ci] = $.wijmo.wijgrid.getAttributes(row.cells[ci], prevent);
}
}
result[ri] = tmp;
}
}
return result;
}
我已經做了一個試驗用「數據 - 」關於td
元素屬性和它們不被破壞。
注意:您要使用的選項readAttributesFromData
。
您可以聯繫誰開發這個插件問他們爲什麼註釋掉這一行的公司。
相關問題
- 1. 數據破壞
- 2. 破壞數據庫
- 3. Python屬性是否被破壞?
- 4. 表格內插屬性表破壞
- 5. WebActivatorEx全局屬性破壞CI構建
- 6. _destroy屬性不破壞記錄
- 7. 非破壞性spl_autoload_register
- 8. ZeroMQ消息破壞數據
- 9. MPI Recv數據被破壞
- 10. SocketChannel.write(ByteBuffer [])「破壞」數據
- 11. 什麼是java中的破壞性和非破壞性方法?
- 12. 歸併 - 破壞性與非破壞性Java中
- 13. 從數據庫提取完整性破壞的數據
- 14. 自定義wijgrid改變兩個wijgrid數據和加載列
- 15. 破壞不破壞
- 16. 破壞不破壞
- 17. Rails屬於依賴破壞
- 18. wpautop() - 當shortcode屬性在新行上時 - 破壞args數組
- 19. 破壞性的Git提交?
- 20. 破壞黑莓持久性
- 21. Rails:對象破壞性能
- 22. npm非破壞性更新
- 23. 是CALayer insertSublayer:atindex:破壞性的?
- 24. MPMoviePlayerController的初始和結束時間屬性...破壞性?
- 25. 拷貝數組的char *破壞數據
- 26. UITableView - 破壞性的UIContextualAction不重新載入數據
- 27. wijgrid onAfterCellEdit
- 28. Javascript中破壞性與非破壞性方法的命名約定
- 29. 爲什麼ListAppend是非破壞性的,而ArrayAppend和StructInsert都具有破壞性?
- 30. umount後SD卡數據被破壞
現在,這是完全意想不到的。我知道他們在創建自己的網格時刪除了這些屬性。但希望有一些選擇來防止這種情況發生。我沒有想到,它可能是一個錯誤或死代碼造成的。 – 2012-01-05 22:34:46