📄 look_controller.rb
字号:
class LookController < ApplicationController
def at
end
WORDS = ["This", "is", "a", "test", "here", "are", "the", "words"]
def getter
@term = request.raw_post
regexp = Regexp.new(@term)
@found = WORDS.find_all{ |term| term =~ regexp }
end
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -