🌈 搜索
📅  最后修改于: 2022-03-11 15:02:31.580000             🧑  作者: Mango
var str = 'Some very long string'; if(str.length > 10) str = str.substring(0,10);