sorry,刚才那个还有for,这个没有for了
js版
<script type="text/javascript">
function aa(x,y)
{
if (y==0) return;
aa(x,y-1);
document.write(x);
}
function a(x)
{
if (x==0) return;
a(x-1);
aa(x,x);
document.write("<br/>");
}
a(8)
</script>
asp版
<%
sub aa(x,y)
if y=0 then exit sub
call aa(x,y-1)
response.write x
end sub
sub a (x)
if x=0 then exit sub
call a(x-1)
call aa(x,x)
response.write "<br/>"
end sub
call a(8)
%>
2019-07-17 22:55:27
举报
评论
全部评论 (0)