let token = jwt.encode(param,‘dingshaohua‘,{
expiresIn: 60*60 // 24小时过期
});
$(document).ajaxStart(onStart)
.ajaxComplete(onComplete)
.ajaxSuccess(onSuccess);
function onStart(event) {
//.....
}
function onComplete(event, xhr, settings) {
//.....
}
function onSuccess(event, xhr, settings) {
//.....
}
emmm
下面是比较着急要换的导航了