发现bigint数据,读取的时候,被约份了,后来查一下数据模块,发现这样就可以完美解决,分享一下
supportBigNumbers: When dealing with big numbers (BIGINT and DECIMAL columns) in the database, you should enable this option (Default: false).
var connection = mysql.createConnection({ host : 'example.org', user : 'bob', password : 'secret', supportBigNumbers: true });
PS:我是被迫用bigINT的,能不用就不用,bigint其实是很不合理的,无奈接入的API的数据类型是bigint,就好默默流泪了。