怎么样用一个循环把这几句代码化简?
sd1.InnerHtml = now.AddDays(8 - now.AddDays(7).DayOfWeek()).ToString( "yyyy年M月d日 ")
sd2.InnerHtml = now.AddDays(9 - now.AddDays(7).DayOfWeek()).ToString( "yyyy年M月d日 ")
sd3.InnerHtml = now.AddDays(10 - now.AddDays(7).DayOfWeek()).ToString( "yyyy年M月d日 ")
sd4.InnerHtml = now.AddDays(11 - now.AddDays(7).DayOfWeek()).ToString( "yyyy年M月d日 ")
sd5.InnerHtml = now.AddDays(12 - now.AddDays(7).DayOfWeek()).ToString( "yyyy年M月d日 ")
其中sdX是画面上的span
怎么把这段代码化简? 谢谢
------解决方案--------------------可读性很好嘛.不简化了
------解决方案--------------------可读性很好嘛.不简化了