全中文日期显示

script language="gt; function number(index1){ var numberstring="一二三四五六七八九十"; if(index1 ==0) {document.write("十")} if(index1 10){ document.write(numberstring.substring(0+(index1-1),index1))} else if(index1 20 ){ document.write("

<script language=”&#106avascript”>
function number(index1){
var numberstring=”一二三四五六七八九十”;
  if(index1 ==0) {document.write(“十”)}
  if(index1 < 10){
    document.write(numberstring.substring(0+(index1-1),index1))}
  else if(index1 < 20 ){
    document.write(“十”+numberstring.substring(0+(index1-11),(index1-10)))}
  else if(index1 < 30 ){
    document.write(“二十”+numberstring.substring(0+(index1-21),(index1-20)))}
  else{
    document.write(“三十”+numberstring.substring(0+(index1-31),(index1-30)))}
  }

var today1 = new Date()
var month = today1.getMonth()+1
var date = today1.getDate()
var day = today1.getDay()

document.write(“公元二零零零年”)
number(month)
document.write(“月”)
number(date)
document.write(“日”)
</script>

给TA打赏
共{{data.count}}人
人已打赏
其他教程

一款万年历

2006-3-3 1:45:00

其他教程

八种风格的时间日期

2006-3-3 1:47:00

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
有新私信 私信列表
搜索