js求1到100的和var num=100mySum=new sum2()document.write("方法1:1+...+100="+sum(num))document.write("<br>方法2:2023-04-11JavaScript220