MVC开发记录

jquery模态框显示隐藏切换

var show = $('#id').css('display');
$("#id").css('display', show == 'block' ? 'none' : 'block');