摘要: jQuery获取Select选择的Text和Value:语法解释:1. Java代码 $("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项时触发2. var checkText=$("#select_id").find("option:selected").text(); //获取Select选择的Text3. var checkValue=$("#select_id").val(); //获取Select选择的Value4. va 阅读全文
posted @ 2012-12-27 11:22 小水阿哥 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 有时候我们要对C#时间进行转换,达到不同的显示效果默认格式为:2005-6-614:33:34如果要换成成200506,06-2005,2005-6-6或更多的该怎么办呢我们要用到:DateTime.ToString的方法(String,IFormatProvider)usingSystem; usingSystem.Globalization; Stringformat="D"; DateTimedate=DataTime,Now; Response.Write(date.ToString(format,DateTimeFormatInfo.InvariantInfo)) 阅读全文
posted @ 2012-12-27 10:44 小水阿哥 阅读(196) 评论(0) 推荐(0) 编辑