[]toFixed(0)函数是什么作用?

text = new Text();
text.fontSize = 20;
text.text = (Math.random() * 100).toFixed(0);
text.rotation = Math.random() * 360;
text.color = "#CCCCCC";
已邀请:

要回复问题请先

商务合作
商务合作