Home >Web Front-end >JS Tutorial >Extend easyui.datagrid and add data loading mask effect code_jquery
In the process of using it, I found that easyui still lacks some small functions or has not been opened
Take the datagrid plug-in as an example. Data loading provides two methods of remote and local data loading, but only when loading remote data. The mask layer of data loading will be displayed, and the mask layer will be hidden after the data loading is completed; while the mask will not appear when local data is loaded, this should be considered that the local data loading speed is very fast and the mask is not used. Necessary
However, when used in the actual project development process, the url method was not considered to load the data, and the loadData method was used to load the data asynchronously. At this time, it is necessary to display the mask layer to prompt The user is currently loading data, analyzing the datagrid code of easyui, cutting out the mask display code when loading remote data, and extending the datagrid method. The code is as follows: