Is there any practical use of redefining Math.constructor in JavaScript/ActionScript?
问题 The Math object does not have a prototype property, but does have a constructor property. Is there any case in which redefining the constructor would be useful? 回答1: MDN says: Unlike the other global objects, Math is not a constructor. All properties and methods of Math are static . In other languages, when a class is static, you can directly use its properties and methods without creating an instance of that class ( an object ). If Math constructor is used, there is no native type to support