--计算当前月的实际天数 Create FUNCTION dbo.CalcDaysOfMonth (@time varchar(6)) RETURNS int AS BEGIN DECLARE @Days int DECLARE @Month int DECLARE @Year int SET @Year=SUBSTRING(@time,1,4) SET @Month=SUBSTRING(@time,5,6) if( @Month='1' OR @Month='3' OR @Month='5'
--计算当前月的实际天数 Create FUNCTION dbo.CalcDaysOfMonth (@time varchar(6)) RETURNS int AS BEGIN DECLARE @Days int DECLARE @Month int DECLARE @Year int SET @Year=SUBSTRING(@time,1,4) SET @Month=SUBSTRING(@time,5,6) if( @Month='1' OR @Month='3' OR @Month='5'
ExtAspNet - ExtJS based ASP.NET Controls with Full AJAX Support ExtAspNet是一组专业的Asp.net控件库,拥有原生的AJAX支持和丰富的UI效果, 目标是创建没有ViewState,没有Javascr ipt,没有CSS,没有UpdatePanel,没有WebServices的Web应用程序。 支持的浏览器: IE 7.0+, Firefox 3.0+, Chrome 2.0+, Opera 9.5+, Safari 3
本文实例分析了JS返回只包含数字类型的数组实现方法。分享给大家供大家参考,具体如下:
实现效果如:js123ldka78sdasfgr653 => [123,78,653]
一般做法
分析:
1.循环字符串每个字符,是数字的挑出来拼接在一起,不是数字的,就给他空的拼个逗号
2.将新字符串每一位转换为数组,再次遍历,存在的挑出来,即得到结果
var str="js123ldka78sdasfgr653";
var new_str="";
var arr=[];
var arr2=[];
f