代码如下:function CNDateString(date) { var cn = [“〇”,”一”,”二”,”三”,”四”,”五”,”六”,”七”,”八”,”九”]; var s = []; var YY = date.getFullYear().toString(); for (var i=0; i<YY.length; i++) if (cn[YY.charAt(i)]) s.push(cn[YY.charAt(i)]); else s.push(YY.charAt(i)); s.push(“年”); var MM = date.getMonth(); if (MM<10