我有这个数据
var initialData = [
{ name: "Sweets", details: 352 },
{ name: "Spicy", details: "89 juwu jdbjd jd bdjh djh sdjh sjh sdhj sjh sjh shjdsjhsdhjsdhjshjdyrrrrrrrrrrrrrrrrrrr" },
{ name: "Salty", details: 23 }
];
必须找到“详细信息”字段的最大长度并将输出设为 70(假设名称的详细信息长度:“辣”),即最大值。需要解决方案/建议。提前致谢。