做一点,记一点 ~ JQuery EasyUI使用小结(注意点)

一、用时过程中出现的问题及解决方法

  1. IE加载DataGrid数据缓慢的问题。

      解决方法:

   (1)将DataGrid的fitColumns属性设置为false;

   (2)将DataGrid(TreeGrid)的每一列的width属性设置为固定值,不用让他自适应。

   (3)在某些内容较多的列上搭配tooltip进行提示显示。

  2. IE中显示DataGrid无数据(应该是DataGrid表格无法看到)的问题。

      解决方法:

   (1)设置<html style="height : 100%;">;

   (2)设置<body style="height : 98%;"> (设置为98%是为了解决某些情况下无故出现垂直滚动条);

   (3)设置DataGrid的<div style="height : 100%;"></div>

  

  3. easyui-textbox组件填入的数据无法清空的问题($("#id").val("")不起作用)。

      解决方法:

   (1)获取值:var value = $("#id").textbox('getValue') ;

   (2)设置值:$("#id").textbox('setValue','');

原文地址:https://www.cnblogs.com/maxiaolang/p/9075842.html