日期:2014-05-16 浏览次数:20504 次
<script type="text/javascript">
function f(d) {
var ar = d.split('/');
var res = {
'year': ar[2],
'month': ar[1],
'day': ar[0]
}
return res;
}
var x = f('03/04/2012');
alert(x.year + '年' + x.month + '月' + x.day + '日');
</script>