Generally speaking, it is unlikely to encounter a huge
I happened to encounter this problem and tested it.
The measured limit is [-2147483648, 2147483647], that is, [ - 2^31 ~ 2^31 - 1 ]
The browser is slightly different.
On IE10 and Firefox, after the serial number reaches the positive limit value 2147483647, the serial numbers of subsequent list items are all the positive limit value 2147483647 and remain unchanged.
##2147483645. a2147483646. b
2147483647. c
2147483647. d
2147483647. e
2147483647. f
2147483646. b
2147483647. c
-2147483648. d
-2147483647. e
-2147483646. f
The above is the detailed content of Analysis of the serial number limit of the ol element in the html document. For more information, please follow other related articles on the PHP Chinese website!