LEATH
header.html: 登出index.html: $('.navbar-header').load('header.html');然后在index.html中执行js:$(".logout").bind("click", function () {$.ajax({type: 'POST',url: 'user/logout',data: JSON.stringify({"code": 111}),dataType: "json",contentType: "application/json",success: function (data) {window.location.href = "login.html"}});});logout没有用,没有发起请求