<%= link_to_remote "Show", :url => { :action => "show"},:with => "'date=' + $('date').value + '&type=' + $('type').value",:complete => "change_name()"%>
在:with参数中用&符号链接就可以 .
:complete在完成后执行js.(complete在多个地方都可以使用)
<%= link_to_remote "Show", :url => { :action => "show"},:with => "'date=' + $('date').value + '&type=' + $('type').value",:complete => "change_name()"%>
在:with参数中用&符号链接就可以 .
:complete在完成后执行js.(complete在多个地方都可以使用)