<script> $(function(){ $(document).on('click', '.add' ,function(){ window.location.href="{:url('index/index/info')}"; }); $(document).on('click', '.daohang', function () { alert('导航' + $(this).attr('data-id')); }); }); </script>