错误解决:Uncaught TypeError: Cannot read properties of null (reading ‘XXX‘).
报错信息:前端代码:$(document).ready(function(){$.ajax({url:"......",type:"GET",dataType:"json",success:function(json){if(......){$("#username").val(json.data.username);......}else{......}},error:function(xhr)