🌈 搜索
📅  最后修改于: 2022-03-11 14:48:31.408000             🧑  作者: Mango
if(x.lastIndexOf("\n")>0) { return x.substring(0, x.lastIndexOf("\n")); } else { return x; }