Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:
其他好文 时间:
2014-07-16 23:16:32
阅读次数:
156
object missing = System.Reflection.Missing.Value; //表示缺i省object SaveFileDialog savedialog = new SaveFileDialog(); savedialog.Filter = "(*.xlsx)|*.xlsx...
分类:
Web程序 时间:
2014-07-16 23:12:04
阅读次数:
236
字典,数组 ,集排序一、字典类存储以下数据name:张三; sex:男;age:18 film:风暴; playcount:10000次;price:60元字典类用于保存具有映射关系(key-value对)的数据对于“name:张三”来讲,key就是“name”,key对应的value是“张 三”一...
分类:
移动开发 时间:
2014-07-16 23:07:45
阅读次数:
277
//自定义验证规则 名称为name//$.fn.validatebox.defaults.rules.name.message 动态自定义提示内容$.extend($.fn.validatebox.defaults.rules, {name: {validator: function (value,...
分类:
其他好文 时间:
2014-07-10 13:40:49
阅读次数:
207
Write an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integers in each row are sorted from l...
分类:
其他好文 时间:
2014-07-10 12:37:21
阅读次数:
189
取得dbgrid选中行的行号DBGrid2.DataSource.DataSet.RecNo取得dbgrid选中行指定列的数据DBGrid2.Fields[0].Value;//第一列DBGrid2.Fields[1].Value;//第二列网上有种说法是假如你用的是 adoquery1那就是ado...
分类:
数据库 时间:
2014-07-10 11:47:41
阅读次数:
1209
这是添加自定义字符串的方式,保存是以键-值的形式保存的,可以通过key获取value,一般用这种方法配置全局内使用的字符串.是配置文件的根配置节.是自定义配置节,包含自定义应用程序设置.add元素是向应用程序设置集合添加名称/值对形式的自定义应用程序设置.代码:Web.config1 2 3 4 5...
分类:
Web程序 时间:
2014-07-10 11:30:53
阅读次数:
199
//格式化url查询参数为jsonfunction formatUrl(url){ var reg=/(?:[?&]+)([^&]+)=([^&]+)/g; var data={}; function fn(str,pro,value){ data[decod...
分类:
其他好文 时间:
2014-07-10 10:16:51
阅读次数:
167
需要包 struts2-convention-plugin.jar@Namespace("/xxxx/zzz")public class ConnectionAction { /** Action执行方法* */ @Action(value = "ConnectManage", resu...
分类:
其他好文 时间:
2014-07-09 23:47:34
阅读次数:
241
http://www.opengl.org/wiki/FragmentFragment 是Raster的输出,输出可以是color value, stencil value或者depth value,写几个OpenGL例子AFragmentis a collection of values prod...
分类:
其他好文 时间:
2014-07-07 22:29:24
阅读次数:
258