UNPKG

num-tofixed

Version:

toFixed with Math.round,fixed the bug of original toFixed function

24 lines (22 loc) 716 B
<!DOCTYPE html> <html> <head> <title>num-toFixed 测试用例</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="mocha.css" /> </head> <body> <div id="mocha"></div> <script src="mocha.js"></script> <script> mocha.setup('bdd'); </script> <script type="text/javascript" src="../../node_modules/chai/chai.js"></script> <script type="text/javascript" src="../../dist/index.js"></script> <script type="text/javascript" src="lib.test.js"></script> <script> mocha.run(); </script> </body> </html>