🌈 搜索
📅  最后修改于: 2022-03-11 15:02:48.757000             🧑  作者: Mango
function solution(str, ending){ return str.indexOf(ending, str.length - ending.length) !== -1; }