考完才做出来,醉了,求大神看对不? String.prototype.get = function(suffix){ var arr = this.split(" "); var obj = {}; var sortable = []; for(var i = 0; i < arr.length; i++){ if(arr[i].substring(arr[i].length-3,arr[i].length) == suffix){ if(!obj[arr[i]]){ obj[arr[i]] = 1; ...