摘要: 1 class SampleCollection 2 { 3 private T[] arr = new T[100]; 4 public T this[int i] 5 { 6 get 7 { 8 return arr[i]; 9 }10 set11 {12 arr[i] = value;13 }14 }15 }16 17 // This class shows how client code uses the in... 阅读全文
posted @ 2013-08-20 16:46 Ling.zx 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 如何实现弹出窗口方式 1 function Func_ShowModalDialog() { 2 var obj=new Object(); 3 obj.name=""; 4 var windowAttribs = "dialogHeight:600px;" + "dialogWidth:900px;" 5 + "dialogTop:(mount-600-30)*0.5px;" + "dialogLeft:(chasm-900-10)*0.5px;" 6 + "status:no;re 阅读全文
posted @ 2013-08-20 16:40 Ling.zx 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 1、如何实现表单中的checkbox全选 function Func_CheckBoxAll() { for (var i = 0; i < form1.elements.length; i++) { var e = form1.elements[i]; if (e.type == 'checkbox') e.checked = true; } }2、如何实现表单中的checkbox反选 function Func_CheckBoxAntiAll() { for (var i = 0; i < form1.elements.length; i++) { var e 阅读全文
posted @ 2013-08-20 16:37 Ling.zx 阅读(212) 评论(0) 推荐(0) 编辑