用JS求完美数在for(b=1b<ab++)之前要初始化d=0:<script type="textjavascript">var a, b,c= 1,d=0完美数6 28 496fo2023-02-19JavaScript290