_search.rhtml
来自「用ruby on rails写的一个博客程序,还不错..ruby on rail」· RHTML 代码 · 共 17 行
RHTML
17 行
<div id="search" class="search"> <% form_tag({ :controller => 'articles', :action => 'search' }, { :method => 'get', :id => 'sform' }) do -%> <p><input type="text" id="q" name="q" value="" /></p> <% end -%> <div id="loading" class="loading" style="display:none;">Searching...</div> <div id="results" class="results"></div> <%= observe_field 'q', :url => { :controller => 'live', :action => 'search' }, :frequency => 1, :loading => "Element.show('loading')", :complete => "Element.hide('loading')", :update => 'results', :with => "'q=' + escape($F('q'))" %></div>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?