JS设置返回值多出调用设一个全局变量就好了。 <SCRIPT type=textjavascript>var myDaywindow.onload=function(){myDay=getDate()}function getDate(2023-02-22JavaScript240