$().ready(function () { var indx_target; var indx_ID; var indx_kcsl; var grid = document.all.grdTest; var myJSON = { ...
分类:
其他好文 时间:
2015-03-20 20:27:47
阅读次数:
129
现象:前台grid发送ajax请求,通过谷歌devtool发现“waiting”时间高达23s(1500条数据);可见服务器端代码处理花费时间很长;解决:分析代码,有两处代码注释掉后速度提升明显 1 //第一处,查询所有考试成绩:1500条 2 var data = _scoreResultSer....
分类:
其他好文 时间:
2015-03-20 14:10:16
阅读次数:
96
解决的问题
使用grid放置item的时候,每次数据可能都不一样,但是每次都删除grid下面的节点,之后动态创建新的item是比较浪费的。
写个简单的工具函数,原理很简单。
1、先获得grid下面的可用item
2、根据data的大小进行初始化
3、每次在可用的item列表里面获取新的item,如果不够用了,就创建新的item
4、disable掉没用的it...
分类:
编程语言 时间:
2015-03-19 22:14:25
阅读次数:
205
1. 初始化的时候不加载数据设置datatype: 'local' 1 $("#grid").jqGrid({ 2 url:"http://www.8qiu.cn", 3 datatype:"local", 4 //other options 5 }); 2. 当要加载数据的时...
分类:
其他好文 时间:
2015-03-19 18:07:08
阅读次数:
276
参考: http://stackoverflow.com/questions/2381560/how-to-group-a-3x3-grid-of-radio-buttons用到的关键类:效果:
分类:
移动开发 时间:
2015-03-18 20:28:54
阅读次数:
184
DescriptionA cellular automaton is a collection of cells on a grid of specified shape that evolves through a number of discrete time steps according to a set of rules that describe the new state of a c...
分类:
其他好文 时间:
2015-03-17 21:52:30
阅读次数:
130
产品应用1.射频功放2.加速度传感器3.地磁传感器可靠性 Reliability高压蒸煮 PCT 121℃,100%RH,2atm,96hrs高低温循环 TCT -55℃(15min)~125℃(15min),1000cycles高温储存 HTS 150℃,1000hrs低温储存 LTS -65℃,...
分类:
其他好文 时间:
2015-03-17 17:32:02
阅读次数:
154
Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where "adjace...
分类:
其他好文 时间:
2015-03-17 12:18:53
阅读次数:
111
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
The robot can only move either down or right at any point in time. The robot is trying to reach the bo...
分类:
其他好文 时间:
2015-03-17 10:29:46
阅读次数:
189
Follow up for "Unique Paths":
Now consider if some obstacles are added to the grids. How many unique paths would there be?
An obstacle and empty space is marked as 1 and 0 respectively
in the grid...
分类:
其他好文 时间:
2015-03-17 10:28:53
阅读次数:
180