flutter Unhandled Exception: type 'int' is not a subtype of type 'String'
Irder外贸平台,个人免费入驻 https://www.irder.com
Unhandled Exception: type 'int' is not a subtype of type 'String'
latitude = double.parse(json['latitude']);本来以为这个可以把int转换成double,原来只能是转换String
看来得用json['latitude'].toDouble()方法了
评论
登陆评论
没有评论