递归函数从任意数到任意数的连加
function lj (x,y){
if (x>y){
return 0;
}else{
return x + lj(x+1);
}
};
var b=lj(1,100);
alert(b);
报错:Uncaught RangeError: Maximum call stack size exceeded