easyui 笔记
2014-01-13 19:28
465 查看
很多人都用 easyui .但 easyui 是个伪开源,有20个插件不是开源的。即使开源的插件,也不保证是最新的。
再次证明: 开源只是为了养猪,猪养肥了就杀猪 的开源真理。
调用:
网上说的, 不使用 class='easyui-datagrid' 这种做法在很多时候不适用。
再次证明,使用假开源,是各种坑。
由于 datagrid , treegrid 各种掉渣的性能问题,导致项目最后慢的不行。忍痛割掉 easyui 的表格,仅使用 easyui 的部分开源组件: 布局拖拽、菜单、等。
再次证明: 开源只是为了养猪,猪养肥了就杀猪 的开源真理。
修改参数
datagrid 动态修改参数var retSetOptions = function ($gridDom, func) { var options = {}; var s = $.trim($gridDom.attr('data-options')); if (s) { if (s.substring(0, 1) != '{') { s = '{' + s + '}'; } options = (new Function('return ' + s))(); } func(options); var setting = []; for (var item in options) { setting.push(item + ":" + options[item]); } $gridDom.attr("data-options", setting.join(",")); }
调用:
retSetOptions(treeGrid, function (opt) { opt["singleSelect"] = (this._Ref_Type_ == "radio"); });
网上说的, 不使用 class='easyui-datagrid' 这种做法在很多时候不适用。
再次证明,使用假开源,是各种坑。
由于 datagrid , treegrid 各种掉渣的性能问题,导致项目最后慢的不行。忍痛割掉 easyui 的表格,仅使用 easyui 的部分开源组件: 布局拖拽、菜单、等。
相关文章推荐
- Mysql错误:Ignoring query to other database解决方法
- LeetCode - Longest Consecutive Sequence
- 黑马程序员---java学习笔记之GUI2
- Windows Azure入门教学系列 (五):使用Queue Storage
- 每日英语:KFC's Crisis in China Tests Ingenuity of Man Who Built Brand
- UI第四章表视图简介
- UI第四章图书(图片放大)
- ios 查看UIView的层次继承关系工具
- ios 查看UIView的层次继承关系工具
- iOS 上的蓝牙框架 - Core Bluetooth for iOS
- CSS3 Media Queries 实现响应式设计
- Ios UIScrollView的属性总结(挺全的)
- UITableView实现加载更多数据
- 黑马程序员-----IO之序列流SequenceInputStream
- Guided Image Filtering
- 在pcDuino使用开源的语音识别Sphinx
- UITableView Class 参考 (1)<Creating Table View Cells>
- requestDisallowInterceptTouchEvent
- missing required architecture i386 解决方法
- UIViewContent