js代码
<script src="js/api.js" type="text/javascript" charset="utf-8"></script> <script src="js/Allin.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript"> $(function() { $('#Search').click(function() { var txt = $('#filtertxt1').val(); $("table tbody tr") .hide() .filter(":contains('" + txt + "')") .show(); }) }); </script>