摘要: 现在有一个小需求就是一个xml中有一个condition节点,节点中包含有一个字符串类型的表达式,要对这个表达式进行运算,判断运算结果是true还是false。如下: param1>3现需要运算condition中的表达式param1>3。表达式的语法符合javascript表达式语法。解决的代码... 阅读全文
posted @ 2014-06-12 14:16 devin2 阅读(638) 评论(0) 推荐(0) 编辑
摘要: >" %> 选择人员 双击选择用户 ... 阅读全文
posted @ 2014-03-28 15:35 devin2 阅读(497) 评论(0) 推荐(0) 编辑
摘要: var str="测试代码a";一般情况下,我们用i.length会得到结果5但有时候我们需要9,下面的小代码可以解决问题Javascript代码结果是:9 阅读全文
posted @ 2014-02-25 14:27 devin2 阅读(319) 评论(0) 推荐(0) 编辑
摘要: protected void Bind() { CompInfo ci = (CompInfo)Session["coi"]; Complinkappl cla = new Complinkappl(); IList iclai = cla.Selsonly(" cpacompid = " + ci.Compid.ToString() + " order by cpadate desc"); this.GridView1.DataSource = iclai; this... 阅读全文
posted @ 2014-01-16 14:14 devin2 阅读(1052) 评论(0) 推荐(0) 编辑
摘要: 转自 :http://www.cnblogs.com/quejuwen/p/3517275.html//c datetime 格式化DateTime dt = DateTime.Now;Label1.Text = dt.ToString();//2005-11-5 13:21:25Label2.Text = dt.ToFileTime().ToString();//127756416859912816Label3.Text = dt.ToFileTimeUtc().ToString();//127756704859912816Label4.Text = dt.ToLocalTime().ToS 阅读全文
posted @ 2014-01-13 21:55 devin2 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 用页面中有一个隐藏域用普通的document.getElementById("hdQuarterDocId")运行时会报错,取不到这个控件的值或者报这个控件为null。要用这个方法才能取到这个控件的值 document.getElementById(""); 阅读全文
posted @ 2013-12-27 16:22 devin2 阅读(536) 评论(0) 推荐(0) 编辑