我可以不 JSON.stringify() ee.List() 的输出吗?
var dates = ee.List(imageCollection.get('date_range'));
print('type: ', typeof(dates));
print('JSON.stringify: ', JSON.stringify(dates));
print('Date zero: ', dates.get(0));
print('type: ', typeof(dates.get(0)))
print('JSON.stringify: ', JSON.stringify(dates.get(0)))
控制台说:
type:
object
JSON.stringify:
{}
Date zero:
1365638400000
type:
object
JSON.stringify:
{}
我的最终游戏是将 dates.get(0) 解释为整数....