var a = 2000000000000000000;
a = a - 1; //Doesn't work
a = a + 1; //Doesn't work
但
a = a * 10; //Works
a = a / 10; //Works
谁能解释为什么会这样?
您可以在浏览器控制台中尝试此示例。
var a = 2000000000000000000;
a = a - 1; //Doesn't work
a = a + 1; //Doesn't work
但
a = a * 10; //Works
a = a / 10; //Works
谁能解释为什么会这样?
您可以在浏览器控制台中尝试此示例。