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. 非破坏性spl_autoload_register
- 4. ZeroMQ消息破坏数据
- 5. MPI Recv数据被破坏
- 6. SocketChannel.write(ByteBuffer [])“破坏”数据
- 7. 归并 - 破坏性与非破坏性Java中
- 8. 什么是java中的破坏性和非破坏性方法?
- 9. 从数据库提取完整性破坏的数据
- 10. Rails属于依赖破坏
- 11. 是CALayer insertSublayer:atindex:破坏性的?
- 12. wijgrid onAfterCellEdit
- 13. UITableView - 破坏性的UIContextualAction不重新载入数据
- 14. Javascript中破坏性与非破坏性方法的命名约定
- 15. NaNs问题:set_index()。reset_index()破坏数据
- 16. Sparc程序集调用破坏数据
- 17. 使用UTF-8和mb_substr破坏数据
- 18. Python成像库破坏像素数据
- 19. 部署是否破坏数据?
- 20. Asp.net mvc图表破坏页面数据
- 21. 如何破坏SQL CE数据库?
- 22. WebClient UploadFile破坏二进制数据
- 23. OSX上的Libsndfile破坏数据
- 24. 数据库可能被破坏?
- 25. 将添加部分类属性破坏延期执行?
- 26. Rails:破坏不起作用的嵌套属性
- 27. :在Rails 2.3.4中破坏has_many关联的自动保存属性?
- 28. 启动Rails删除,而不是破坏嵌套属性
- 29. 原型1.7 - 属性选择器被破坏了吗?
- 30. 如何破坏在JavaScript中的所有属性为本地设
现在,这是完全意想不到的。我知道他们在创建自己的网格时删除了这些属性。但希望有一些选择来防止这种情况发生。我没有想到,它可能是一个错误或死代码造成的。 – 2012-01-05 22:34:46