摘要:
jQuery获取Select选择的Text和Value:语法解释:1. $("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项时触发2. var checkText=$("#select_id").find("option:selected").text(); //获取Select选择的Text3. var checkValue=$("#select_id").val(); //获取Select选择的Value4. var check 阅读全文
摘要:
昨天在创建MVC项目的时候遇到这样一个问题 this template attempted to load component assembly 'NuGet.VsiualStudio.interop,version=1.0.0.0 culture=neutral publickeytoken=0000000'. For more information on this problem and how to enable this template please see documentation on customizing project templates提示 ' 阅读全文
摘要:
1. 当前系统日期、时间select getdate()2. dateadd 在向指定日期加上一段时间的基础上,返回新的 datetime 值例如:向日期加上2天select dateadd(day,2,'2004-10-15') --返回:2004-10-17 00:00:00.000例如:查询目前时间最近三天的内容降序排列select * from table where time between dateadd(day,-3,getdate()) and getdate() order by c_Id desc3. datediff 返回跨两个指定日期的日期和时间边界数。 阅读全文