'+str+'
'\n}\n\nfunction calcMoney(money, month) {\n\tvar sum = money;\n\toutPut('每月盈利1%,每月投¥'+money);\n\toutPut('总共投'+month+'个月')\n\tfor(var i = 0;i < month; i++) {\n\t\tsum = sum * 1.01\n\t\toutPut('第'+ (i+1) +'个月: ' + sum);\n\t\tsum += money;\n\t}\n}\n\ncalcMoney(1000, 360);"},"options":{"activeKey":"player","hide":{"html":true,"css":true,"js":false},"name":{"html":"HTML","css":"CSS","js":"JavaScript"},"layout":"left","profile":{"html":"","css":"type=\"text/css\"","js":""},"mode":{"html":"htmlmixed","css":"css","js":"javascript"}}}JS计算理想投资模型
{"code":{"html":"","css":"","js":"function outPut(str) {\n\tconsole.log(str);\n\tdocument.body.innerHTML += '