初学者求帮助,jquery 年月日联动三级联动,天数匹配不对

1. 给出当前年月日,计算是一年中的第几天 哪里出错了..求帮助啊!!
[问题点数:20分]
1. 给出当前年月日,计算是一年中的第几天 哪里出错了..求帮助啊!!
[问题点数:20分]
不显示删除回复
显示所有回复
显示星级回复
显示得分回复
只显示楼主
2013年 总版技术专家分年内排行榜第三
2012年 总版技术专家分年内排行榜第七
本帖子已过去太久远了,不再提供回复功能。款游戏开测
组开服信息
新游开测:&&&&&&&
还剩多久脱光《惊天战神》2012勇敢爱
15:54 来源:厂商 作者: 
  玛雅人说日的黑夜降临以后,12月22日的黎明永远不会到来。也就是说12月21日会是世界的末日。看看网页上的倒计时,你还剩多少时间寻找真爱?11月11日16点30分惊天YY频道(47083)开启《2012 勇敢爱》计划。勇敢的进入战神YY,勇敢的寻找真爱!
  【神秘金牌麦手 YY人气频道美女嘉宾】
  日16时30分,《》将在战神官方YY47083官方频道举办游戏生活服务类节目《2012 勇敢爱》,注意,虽然口号神似,但请千万别把它当成&非诚勿扰&!活动期间,只要你是一名忠实神粉并且也是YY注册用户,你就可以轻松参与其中。此次活动由国内首款3D竞技页游《惊天战神》全权主办,活动将邀请神秘金牌麦手担任节目司仪,并特邀多名YY人气频道美女担当活动嘉宾!元芳,你怎么看?
07073网页游戏新浪微博
07073网页游戏腾讯微博
【责任编辑:放风筝】
&上一页1共2页
按键盘方向键 “←”上一页, “→” 下一页
一键分享到:
看完这篇新闻有何感觉?已经有 - 人表态。
相关新闻:
类型:科幻
状态:封测
开发:卓越无限
运营:卓越无限
loading...
・・・・・
・ ・ ・ ・ ・Android开发:Parallax效果的ScrollerView,改编自ParallaxListView
最近在项目中,有用到一个仿照Path的Parallax效果,苦苦搜寻,在github上面,有一个类似的效果,不过是listview的,加一个顶部的headerView,实现了该效果,不过我需要的是ScrollerView的,于是对该代码进行的修改,实现了ScrollerView下面的Parallax效果,效果图参照如下:
在阅读下面代码前,可以先查看下Github上面的
我对于原先的代码进行了大量的删减,只实现了我需要的效果,看起来简单易懂,最怕那种绕来绕去的代码了,看核心的实现代码:
public class ParallaxScollView extends ScrollView implements OnScrollListener {
public final static double NO_ZOOM = 1;
public final static double ZOOM_X2 = 2;
private ImageView mImageV
private int mImageViewHeight = -1;
private int mDefaultImageViewHeight = 0;
private int originImageViewH
private int mMaxH
private interface OnOverScrollByListener {
public boolean overScrollBy(int deltaX, int deltaY, int scrollX,
int scrollY, int scrollRangeX, int scrollRangeY,
int maxOverScrollX, int maxOverScrollY, boolean isTouchEvent);
private interface OnTouchEventListener {
public void onTouchEvent(MotionEvent ev);
public ParallaxScollView(Context context, AttributeSet attrs,
int defStyle) {
super(context, attrs, defStyle);
init(context);
public ParallaxScollView(Context context, AttributeSet attrs) {
super(context, attrs);
init(context);
public ParallaxScollView(Context context) {
super(context);
init(context);
public void init(Context context) {
mDefaultImageViewHeight = context.getResources().getDimensionPixelSize(R.dimen.size_default_height);
originImageViewHeight = context.getResources().getDimensionPixelSize(R.dimen.size_default_height);
public void onScrollStateChanged(AbsListView view, int scrollState) {
protected boolean overScrollBy(int deltaX, int deltaY, int scrollX,
int scrollY, int scrollRangeX, int scrollRangeY,
int maxOverScrollX, int maxOverScrollY, boolean isTouchEvent) {
boolean isCollapseAnimation =
isCollapseAnimation = scrollByListener.overScrollBy(deltaX, deltaY,
scrollX, scrollY, scrollRangeX, scrollRangeY, maxOverScrollX,
maxOverScrollY, isTouchEvent)
|| isCollapseA
/*return isCollapseAnimation ? true : super.overScrollBy(deltaX, deltaY,
scrollX, scrollY, scrollRangeX, scrollRangeY, maxOverScrollX,
0, isTouchEvent);*/
public void onScroll(AbsListView view, int firstVisibleItem,
int visibleItemCount, int totalItemCount) {
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
protected void onScrollChanged(int l, int t, int oldl, int oldt) {
super.onScrollChanged(l, t, oldl, oldt);
View firstView = (View) mImageView.getParent();
// firstView.getTop & getPaddingTop means mImageView will be covered by top padding,
// so we can layout it to make it shorter
if (firstView.getTop() & getPaddingTop() && mImageView.getHeight() & mImageViewHeight) {
mImageView.getLayoutParams().height = Math.max(mImageView.getHeight() - (getPaddingTop() - firstView.getTop()), mImageViewHeight);
// to set the firstView.mTop to 0,
// maybe use View.setTop() is more easy, but it just support from
3.0 (API 11)
firstView.layout(firstView.getLeft(), 0, firstView.getRight(), firstView.getHeight());
mImageView.requestLayout();
public boolean onTouchEvent(MotionEvent ev) {
touchListener.onTouchEvent(ev);
return super.onTouchEvent(ev);
public void setParallaxImageView(ImageView iv) {
mImageView =
mImageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
public void setViewsBounds(double zoomRatio) {
if (mImageViewHeight == -1) {
mImageViewHeight = mImageView.getHeight();
if (mImageViewHeight &= 0) {
mImageViewHeight = mDefaultImageViewH
double ratio = ((double) mImageView.getDrawable().getIntrinsicWidth()) / ((double) mImageView.getWidth());
private OnOverScrollByListener scrollByListener = new OnOverScrollByListener() {
public boolean overScrollBy(int deltaX, int deltaY, int scrollX,
int scrollY, int scrollRangeX, int scrollRangeY,
int maxOverScrollX, int maxOverScrollY, boolean isTouchEvent) {
if (isTouchEvent) {
if (true) {
mImageView.getLayoutParams().height = mImageView.getHeight() - deltaY / 2;
mImageView.requestLayout();
private OnTouchEventListener touchListener = new OnTouchEventListener() {
public void onTouchEvent(MotionEvent ev) {
if (ev.getAction() == MotionEvent.ACTION_UP) {
if (mImageViewHeight - 1 & mImageView.getHeight()) {
ResetAnimimation animation = new ResetAnimimation(
mImageView, mImageViewHeight);
animation.setDuration(300);
mImageView.startAnimation(animation);
public class ResetAnimimation extends Animation {
int targetH
int originalH
int extraH
protected ResetAnimimation(View view, int targetHeight) {
this.mView =
this.targetHeight = targetH
originalHeight = view.getHeight();
extraHeight = this.originalHeight - originImageViewH
Log.i(debug, target heitht
+ targetHeight +
original height
+ originalHeight
extraheight
+ extraHeight);
protected void applyTransformation(float interpolatedTime, Transformation t) {
newHeight = (int) (originImageViewHeight + extraHeight * (1 - interpolatedTime));
mView.getLayoutParams().height = newH
mView.requestLayout();
第二布:在xml中,引用该ParallaxScollView:
最后一步,在activity中,引用ParallaxScrollerView,并且设置imageview:
mImageView = (ImageView) findViewById(R.id.headview);
scrollView = (ParallaxScollView) findViewById(R.id.parallax_scroll_view);
scrollView.setParallaxImageView(mImageView);
大功告成,也可以在ScrollerView上实现炫酷的Parallax效果了
(window.slotbydup=window.slotbydup || []).push({
id: '2467140',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467141',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467143',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467148',
container: s,
size: '1000,90',
display: 'inlay-fix'自写日期年月日三级联动效果jquery插件 - 推酷
自写日期年月日三级联动效果jquery插件
哈哈,好久没写新博文啦,原因是最近一直在研究用jquery UI实现截取头像的功能,哈哈
言归正传,有时候呢,我们会在用户资料的页面用到一个年月日日期的三级联动效果。在网上找了找,没看到有多么合适的(主要是本屌丝倾向于用jquery写成插件的形式使用,哈哈~~)
这篇博文呢,主要目的是给大家看下我用jquery写成插件的形式。
原理很简单,就是判断闰年,然后在select change事件的时候给显示日期的select重新append option
(PS.不知道为啥,js有appendchild &方法,可以不停的插入child而不会覆盖,但是jquery却没有,append新的child会把之前的覆盖,感觉好蛋疼的说,本屌丝打算以后写个综合插件,把这些好用的小功能都封装进去,敬请期待吧~~)
撸管无极限,菊花遍地开~~~吼吼,下面上代码。我给他取名叫birthday
;(function($){
$.fn.birthday = function(options){
var opts = $.extend({}, $.fn.birthday.defaults, options);//整合参数
var $year = $(this).children(&select[name=&+ opts.year +&]&);
var $month = $(this).children(&select[name=&+ opts.month +&]&);
var $day = $(this).children(&select[name=&+ opts.day +&]&);
MonHead = [31,28,31,30,31,30,31,31,30,31,30,31];
return this.each(function(){
var y = new Date().getFullYear();
var con = &&;
//添加年份
for(i = i &= (y-80); i--){
con += &&option value='&+i+&'&&+i+&年&+&&/option&&;
$year.append(con);
//添加月份
for(i = 1;i &= 12; i++){
con += &&option value='&+i+&'&&+i+&月&+&&/option&&;
$month.append(con);
//添加日期
var n = MonHead[0];//默认显示第一月
for(i = 1; i &= i++){
con += &&option value='&+i+&'&&+i+&日&+&&/option&&;
$day.append(con);
$.fn.birthday.change($(this));
$.fn.birthday.change = function(obj){
obj.children(&select[name=&+ $.fn.birthday.defaults.year +&],select[name=&+ $.fn.birthday.defaults.month +&]&).change(function(){
var $year = obj.children(&select[name=&+ $.fn.birthday.defaults.year +&]&);
var $month = obj.children(&select[name=&+ $.fn.birthday.defaults.month +&]&);
var $day = obj.children(&select[name=&+ $.fn.birthday.defaults.day +&]&);
$day.empty();
var selectedYear = $year.find(&option:selected&).val();
var selectedMonth = $month.find(&option:selected&).val();
if(selectedMonth == 2 && $.fn.birthday.IsRunYear(selectedYear)){//如果是闰年
var c =&&;
for(var i = 1; i &= 29; i++){
c += &&option value='&+i+&'&&+i+&日&+&&/option&&;
$day.append(c);
}else {//如果不是闰年也没选2月份
var c = &&;
for(var i = 1; i &= MonHead[selectedMonth-1]; i++){
c += &&option value='&+i+&'&&+i+&日&+&&/option&&;
$day.append(c);
$.fn.birthday.IsRunYear = function(selectedYear){
return(0 == selectedYear % 4 && (selectedYear%100 != 0 || selectedYear % 400 == 0));
$.fn.birthday.defaults = {
year:&year&,
month:&month&,
})(jQuery);
代码很简短,但是也很好用,用法如下:
html部分,需要给select设置name
&div id=&birthday_container&&
&span style=&white-space:pre&& &/span&&select name=&year&&&/select&
&span style=&white-space:pre&& &/span&&select name=&month&&&/select&
&span style=&white-space:pre&& &/span&&select name=&day&&&/select&
js部分,引入此js文件后(注意放在引用的jquery库文件后面),在页面加载完毕后引入如下代码:
//三级日期联动
$(&#birthday_container&).birthday();
是不是很简单呀,哈哈,提供该js的下载地址:
无毒无码无广告~
附拼诗一首以供娱乐~~猜下其中的意境吧,哈哈
有任何疑问或指教,请加QQ:1740437
已发表评论数()
请填写推刊名
描述不能大于100个字符!
权限设置: 公开
仅自己可见
正文不准确
标题不准确
排版有问题
没有分页内容
图片无法显示
视频无法显示
与原文不一致直接上代码,不多说别的了
&asp:ScriptManager ID="ScriptManager1" runat="server"&
&/asp:ScriptManager&
&asp:UpdatePanel ID="UpdatePanel1" runat="server"&
&ContentTemplate&
&asp:DropDownList ID="DropDownListYear" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownListYear_SelectedIndexChanged"&
&asp:ListItem Value="2014"&2014&/asp:ListItem&
&asp:ListItem Value="2013"&2013&/asp:ListItem&
&asp:ListItem Value="2012"&2012&/asp:ListItem&
&asp:ListItem Value="2011"&2011&/asp:ListItem&
&asp:ListItem Value="2010"&2010&/asp:ListItem&
&asp:ListItem Value="2009"&2009&/asp:ListItem&
&asp:ListItem Value="2008"&2008&/asp:ListItem&
&asp:ListItem Value="2007"&2007&/asp:ListItem&
&asp:ListItem Value="2006"&2006&/asp:ListItem&
&asp:ListItem Value="2005"&2005&/asp:ListItem&
&asp:ListItem Value="2004"&2004&/asp:ListItem&
&asp:ListItem Value="2003"&2003&/asp:ListItem&
&asp:ListItem Value="2002"&2002&/asp:ListItem&
&asp:ListItem Value="2001"&2001&/asp:ListItem&
&asp:ListItem Value="2000"&2000&/asp:ListItem&
&asp:ListItem Value="1999"&1999&/asp:ListItem&
&asp:ListItem Value="1998"&1998&/asp:ListItem&
&asp:ListItem Value="1997"&1997&/asp:ListItem&
&asp:ListItem Value="1996"&1996&/asp:ListItem&
&asp:ListItem Value="1995"&1995&/asp:ListItem&
&asp:ListItem Value="1994"&1994&/asp:ListItem&
&asp:ListItem Value="1993"&1993&/asp:ListItem&
&asp:ListItem Value="1992"&1992&/asp:ListItem&
&asp:ListItem Value="1991"&1991&/asp:ListItem&
&asp:ListItem Value="1990"&1990&/asp:ListItem&
&asp:ListItem Value="1989"&1989&/asp:ListItem&
&asp:ListItem Value="1988"&1988&/asp:ListItem&
&asp:ListItem Value="1987"&1987&/asp:ListItem&
&asp:ListItem Value="1986"&1986&/asp:ListItem&
&asp:ListItem Value="1985"&1985&/asp:ListItem&
&asp:ListItem Value="1984"&1984&/asp:ListItem&
&asp:ListItem Value="1983"&1983&/asp:ListItem&
&asp:ListItem Value="1982"&1982&/asp:ListItem&
&asp:ListItem Value="1981"&1981&/asp:ListItem&
&asp:ListItem Value="1980"&1980&/asp:ListItem&
&asp:ListItem Value="1979"&1979&/asp:ListItem&
&asp:ListItem Value="1978"&1978&/asp:ListItem&
&asp:ListItem Value="1977"&1977&/asp:ListItem&
&asp:ListItem Value="1976"&1976&/asp:ListItem&
&asp:ListItem Value="1975"&1975&/asp:ListItem&
&asp:ListItem Value="1974"&1974&/asp:ListItem&
&asp:ListItem Value="1973"&1973&/asp:ListItem&
&asp:ListItem Value="1972"&1972&/asp:ListItem&
&asp:ListItem Value="1971"&1971&/asp:ListItem&
&asp:ListItem Value="1970"&1970&/asp:ListItem&
&asp:ListItem Value="1969"&1969&/asp:ListItem&
&asp:ListItem Value="1968"&1968&/asp:ListItem&
&asp:ListItem Value="1967"&1967&/asp:ListItem&
&asp:ListItem Value="1966"&1966&/asp:ListItem&
&asp:ListItem Value="1965"&1965&/asp:ListItem&
&asp:ListItem Value="1964"&1964&/asp:ListItem&
&asp:ListItem Value="1963"&1963&/asp:ListItem&
&asp:ListItem Value="1962"&1962&/asp:ListItem&
&asp:ListItem Value="1961"&1961&/asp:ListItem&
&asp:ListItem Value="1960"&1960&/asp:ListItem&
&asp:ListItem Value="1959"&1959&/asp:ListItem&
&asp:ListItem Value="1958"&1958&/asp:ListItem&
&asp:ListItem Value="1957"&1957&/asp:ListItem&
&asp:ListItem Value="1956"&1956&/asp:ListItem&
&asp:ListItem Value="1955"&1955&/asp:ListItem&
&asp:ListItem Value="1954"&1954&/asp:ListItem&
&asp:ListItem Value="1953"&1953&/asp:ListItem&
&asp:ListItem Value="1952"&1952&/asp:ListItem&
&asp:ListItem Value="1951"&1951&/asp:ListItem&
&asp:ListItem Value="1950"&1950&/asp:ListItem&
&asp:ListItem Value="1949"&1949&/asp:ListItem&
&asp:ListItem Value="1948"&1948&/asp:ListItem&
&asp:ListItem Value="1947"&1947&/asp:ListItem&
&asp:ListItem Value="1946"&1946&/asp:ListItem&
&asp:ListItem Value="1945"&1945&/asp:ListItem&
&asp:ListItem Value="1944"&1944&/asp:ListItem&
&asp:ListItem Value="1943"&1943&/asp:ListItem&
&asp:ListItem Value="1942"&1942&/asp:ListItem&
&asp:ListItem Value="1941"&1941&/asp:ListItem&
&asp:ListItem Value="1940"&1940&/asp:ListItem&
&asp:ListItem Value="1939"&1939&/asp:ListItem&
&asp:ListItem Value="1938"&1938&/asp:ListItem&
&asp:ListItem Value="1937"&1937&/asp:ListItem&
&asp:ListItem Value="1936"&1936&/asp:ListItem&
&asp:ListItem Value="1935"&1935&/asp:ListItem&
&asp:ListItem Value="1934"&1934&/asp:ListItem&
&asp:ListItem Value="1933"&1933&/asp:ListItem&
&asp:ListItem Value="1932"&1932&/asp:ListItem&
&asp:ListItem Value="1931"&1931&/asp:ListItem&
&asp:ListItem Value="1930"&1930&/asp:ListItem&
&asp:ListItem Value="1929"&1929&/asp:ListItem&
&asp:ListItem Value="1928"&1928&/asp:ListItem&
&asp:ListItem Value="1927"&1927&/asp:ListItem&
&asp:ListItem Value="1926"&1926&/asp:ListItem&
&asp:ListItem Value="1925"&1925&/asp:ListItem&
&asp:ListItem Value="1924"&1924&/asp:ListItem&
&asp:ListItem Value="1923"&1923&/asp:ListItem&
&asp:ListItem Value="1922"&1922&/asp:ListItem&
&asp:ListItem Value="1921"&1921&/asp:ListItem&
&/asp:DropDownList&
&asp:DropDownList ID="DropDownListMonth" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownListMonth_SelectedIndexChanged"&
&asp:ListItem Value="1"&1&/asp:ListItem&
&asp:ListItem Value="2"&2&/asp:ListItem&
&asp:ListItem Value="3"&3&/asp:ListItem&
&asp:ListItem Value="4"&4&/asp:ListItem&
&asp:ListItem Value="5"&5&/asp:ListItem&
&asp:ListItem Value="6"&6&/asp:ListItem&
&asp:ListItem Value="7"&7&/asp:ListItem&
&asp:ListItem Value="8"&8&/asp:ListItem&
&asp:ListItem Value="9"&9&/asp:ListItem&
&asp:ListItem Value="10"&10&/asp:ListItem&
&asp:ListItem Value="11"&11&/asp:ListItem&
&asp:ListItem Value="12"&12&/asp:ListItem&
&/asp:DropDownList&
&asp:DropDownList ID="DropDownListDay" runat="server"&
&asp:ListItem Value="1"&1&/asp:ListItem&
&asp:ListItem Value="2"&2&/asp:ListItem&
&asp:ListItem Value="3"&3&/asp:ListItem&
&asp:ListItem Value="4"&4&/asp:ListItem&
&asp:ListItem Value="5"&5&/asp:ListItem&
&asp:ListItem Value="6"&6&/asp:ListItem&
&asp:ListItem Value="7"&7&/asp:ListItem&
&asp:ListItem Value="8"&8&/asp:ListItem&
&asp:ListItem Value="9"&9&/asp:ListItem&
&asp:ListItem Value="10"&10&/asp:ListItem&
&asp:ListItem Value="11"&11&/asp:ListItem&
&asp:ListItem Value="12"&12&/asp:ListItem&
&asp:ListItem Value="13"&13&/asp:ListItem&
&asp:ListItem Value="14"&14&/asp:ListItem&
&asp:ListItem Value="15"&15&/asp:ListItem&
&asp:ListItem Value="16"&16&/asp:ListItem&
&asp:ListItem Value="17"&17&/asp:ListItem&
&asp:ListItem Value="18"&18&/asp:ListItem&
&asp:ListItem Value="19"&19&/asp:ListItem&
&asp:ListItem Value="20"&20&/asp:ListItem&
&asp:ListItem Value="21"&21&/asp:ListItem&
&asp:ListItem Value="22"&22&/asp:ListItem&
&asp:ListItem Value="23"&23&/asp:ListItem&
&asp:ListItem Value="24"&24&/asp:ListItem&
&asp:ListItem Value="25"&25&/asp:ListItem&
&asp:ListItem Value="26"&26&/asp:ListItem&
&asp:ListItem Value="27"&27&/asp:ListItem&
&asp:ListItem Value="28"&28&/asp:ListItem&
&asp:ListItem Value="29"&29&/asp:ListItem&
&asp:ListItem Value="30"&30&/asp:ListItem&
&asp:ListItem Value="31"&31&/asp:ListItem&
&/asp:DropDownList&
&/ContentTemplate&
&/asp:UpdatePanel&
protected&void&DropDownListYear_SelectedIndexChanged(object&sender,&EventArgs&e)
&&&&&&&&&&&&DropDownListDay.SelectedIndex&=&0;
&&&&&&&&protected&void&DropDownListMonth_SelectedIndexChanged(object&sender,&EventArgs&e)
&&&&&&&&&&&&switch&(DropDownListMonth.SelectedValue)
&&&&&&&&&&&&{
&&&&&&&&&&&&&&&&case&"1":
&&&&&&&&&&&&&&&&case&"3":
&&&&&&&&&&&&&&&&case&"5":
&&&&&&&&&&&&&&&&case&"7":
&&&&&&&&&&&&&&&&case&"8":
&&&&&&&&&&&&&&&&case&"10":
&&&&&&&&&&&&&&&&case&"12":
&&&&&&&&&&&&&&&&&&&&DropDownListDay.Items.Clear();
&&&&&&&&&&&&&&&&&&&&for&(int&i&=&1;&i&&=&31;&i++)
&&&&&&&&&&&&&&&&&&&&{
&&&&&&&&&&&&&&&&&&&&&&&&DropDownListDay.Items.Add(new&ListItem(Convert.ToString(i),&Convert.ToString(i)));
&&&&&&&&&&&&&&&&&&&&}
&&&&&&&&&&&&&&&&&&&&break;
&&&&&&&&&&&&&&&&case&"4":
&&&&&&&&&&&&&&&&case&"6":
&&&&&&&&&&&&&&&&case&"9":
&&&&&&&&&&&&&&&&case&"11":
&&&&&&&&&&&&&&&&&&&&DropDownListDay.Items.Clear();
&&&&&&&&&&&&&&&&&&&&for&(int&i&=&1;&i&&=&30;&i++)
&&&&&&&&&&&&&&&&&&&&{
&&&&&&&&&&&&&&&&&&&&&&&&DropDownListDay.Items.Add(new&ListItem(Convert.ToString(i),&Convert.ToString(i)));
&&&&&&&&&&&&&&&&&&&&}
&&&&&&&&&&&&&&&&&&&&break;
&&&&&&&&&&&&&&&&case&"2":
&&&&&&&&&&&&&&&&&&&&DropDownListDay.Items.Clear();
&&&&&&&&&&&&&&&&&&&&if&((Convert.ToInt32(DropDownListYear.SelectedValue)&%&4&==&0)&||&(Convert.ToInt32(DropDownListYear.SelectedValue)&%&100&==&0))
&&&&&&&&&&&&&&&&&&&&{
&&&&&&&&&&&&&&&&&&&&&&&&for&(int&i&=&1;&i&&=&29;&i++)
&&&&&&&&&&&&&&&&&&&&&&&&{
&&&&&&&&&&&&&&&&&&&&&&&&&&&&DropDownListDay.Items.Add(new&ListItem(Convert.ToString(i),&Convert.ToString(i)));
&&&&&&&&&&&&&&&&&&&&&&&&};
&&&&&&&&&&&&&&&&&&&&}
&&&&&&&&&&&&&&&&&&&&else
&&&&&&&&&&&&&&&&&&&&{
&&&&&&&&&&&&&&&&&&&&&&&&for&(int&i&=&1;&i&&=&28;&i++)
&&&&&&&&&&&&&&&&&&&&&&&&{
&&&&&&&&&&&&&&&&&&&&&&&&&&&&DropDownListDay.Items.Add(new&ListItem(Convert.ToString(i),&Convert.ToString(i)));
&&&&&&&&&&&&&&&&&&&&&&&&};
&&&&&&&&&&&&&&&&&&&&}
&&&&&&&&&&&&&&&&&&&&break;&
&&&&&&&&&&&&}
代码直接贴入就可以运行,没什么技术含量不多做说明,如果觉得年份太多可以自己放到xml文件中!
阅读(...) 评论()

我要回帖

更多关于 jquery年月日三级联动 的文章

 

随机推荐