b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

c:foreach循环map_c语言有没有foreach_c:foreach(12)

电脑杂谈  发布时间:2017-02-17 06:19:41  来源:网络整理

14:59:28

下午 02:59:28

type可取值及意义:

date 格式化日期

time格式化时间

both格式化日期时间

示例3:

--------------------------

Java代码

<fmt:setLocale value="zh_cn" />

<fmt:formatDate value="<%=new Date()%>" type="both" />

<br />

<fmt:setLocale value="zh_tw" />

<fmt:formatDate value="<%=new Date()%>" type="both" />

<fmt:setLocale value="zh_cn" />

<fmt:formatDate value="<%=new Date()%>" type="both" />

<br />

<fmt:setLocale value="zh_tw" />

<fmt:formatDate value="<%=new Date()%>" type="both" />

输出结果:

2009-12-7 21:24:26

2009/12/7 下午 09:24:26

dateStyle用来设定日期显示的样式,其值可以是default, short, medium, long, full,请看示例:

--------------------------

Java代码

<fmt:setLocale value="zh_cn" />

<fmt:formatDate value="<%=new Date()%>" type="both" dateStyle="default" />

<br />

<fmt:formatDate value="<%=new Date()%>" type="both" dateStyle="short" />

<br />

<fmt:formatDate value="<%=new Date()%>" type="both" dateStyle="medium" />

<br />

<fmt:formatDate value="<%=new Date()%>" type="both" dateStyle="long" />

<br />

<fmt:formatDate value="<%=new Date()%>" type="both" dateStyle="full" />

<br />

<fmt:setLocale value="zh_cn" />

<fmt:formatDate value="<%=new Date()%>" type="both" dateStyle="default" />

<br />

<fmt:formatDate value="<%=new Date()%>" type="both" dateStyle="short" />

<br />

<fmt:formatDate value="<%=new Date()%>" type="both" dateStyle="medium" />


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-32905-12.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...