日期:2014-05-16 浏览次数:20443 次
<script type="text/JavaScript">
var s="12/03/2012";
function changdate(s){
var t=s.split("/");
var ar=new Array();
ar["0"]=t["2"];
ar["1"]=t["0"];
ar["2"]=t["1"];
var b=ar.join("-");
return b;
}
var c=changdate(s);
alert(c)
</script>