js解决搜索框传参数的一种方案

$(".button-to-export-search-excel").click(function(){
    $(".button-to-export-search-excel").attr('href', window.location.pathname+'.xls'+window.location.search)
    $(".button-to-export-search-excel").attr('target', 'blank');
  });


追加属性
$("#statement_<%= @statement.id %>").after("<%= j(render 'match') %>").addClass('current_statement');

猜你喜欢

转载自schooltop.iteye.com/blog/2397674