首页 > 代码库 > 全中文日期显示
全中文日期显示
<!--脚本说明:把如下代码加入<body>区域中:--亿诚-石家庄展柜><script language="JavaScript">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()+1var date = today1.getDate()var day = today1.getDay()document.write("公元二零零零年")number(month)document.write("月")number(date)document.write("日")</script><!--脚本说明:把如下代码加入<body>区域中:--><script language="JavaScript">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()+1var date = today1.getDate()var day = today1.getDay()document.write("公元二零零零年")number(month)document.write("月")number(date)document.write("日")</script>
全中文日期显示
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。