基于javaweb+jsp的健身房信息管理系统
JavaWeb JavaBean JSP MVC MySQL Tomcat Javascript idea eclipse MyEclipse Servlet SSM Maven …
部分代码实现JSP
$('#modal-edit').on('show.bs.modal', function (event) { let button = $(event.relatedTarget); let id = button.data('id'); let modal = $(this); $.ajax({ url: 'coachGet?id=' + id, type: "get", success: function (voString) { let vo = eval('(' + voString + ')'); modal.find('#edit-id').val(vo.id); modal.find('#edit-coachName').val(vo.coachName); for (let val of "男/女".split('/')) { if (val == vo.coachSex) { modal.find('#edit-coachSex_' + vo.coachSex).prop("checked", true); } else { modal.find('#edit-coachSex_' + vo.coachSex).removeAttr("checked");
评论列表(0条)