/** * Created by Administrator on 2017/2/5. */ $(function () { $('.header .nav li').on('click', function () { $(this).addClass('active').siblings().removeClass('active'); }); $('.js-menu').on('click', function () { $('.content').toggleClass('open'); }); $(window).resize(function () { reheight(); }); reheight(); function reheight() { $('.iframe-container').height($(window).height() - 87); $('.iframe-minheight').css('minHeight', $(window).height()); } }); (function () { $('.js-check').on('click',function () { $(this).parent('tr').addClass('active') }) //菜单操作 var check = { init: function () { this.jscheck(); }, jscheck: function () { $('.js-check').on('change',function () { $(this).parents('tr').addClass('active') }) } } return check.init(); }()); $(function () { $(document).keydown(function (event) { if (event.keyCode == 116) { window.top.frames['main'].document.location.reload(); return false; } }); });