87,922
社区成员
发帖
与我相关
我的任务
分享
<script type="text/javascript">
function bcd(){
var a=abc();
document.getElementById("type1").value=a[0];
document.getElementById("date1").value=a[1];
}
function abc(){
var s=[];
s[1]="123";
s[0]="11123";
return s;
}
</script>
<body onload="bcd()">
<input type="text" name="type" id="type1" />
<input type="text" name="date" id="date1" />
</body>