$scope.changeWordLists = ->
find_word = $.trim($scope.find_word.toLowerCase())
if find_word.length == 0
return $scope.words_for_show = words
find_word = find_word.split(/\s+/g)
words_for_show = []
for word in (words or [])
name = word.name.toLowerCase()
if name.indexOf($scope.find_word) > -1
words_for_show.push word
$scope.words_for_show = words_for_show
网友评论