contract JSONExample{ @Description("计算JSON数组之和,参数示例:[{\"score\":20},{\"score\":20}]") export function calculate(arg){ point = JSON.parse(arg); var s = 0; print(point[0].score); print(point.length); for (var i=0;i