html读取txt文档404报错
function openTender(tendid){
$("#maincontent").load("content/ceshi.txt",function(responseTxt,statusTxt,xhr){
if(statusTxt=="success")
alert("外部内容加载成功!");
if(statusTxt=="error")
alert("Error: "+xhr.status+": "+xhr.statusText);
});
}
<td><u name ="opentender" onclick="openTender('${item.projectid}')" title="名称">${item.projectname}</u></td>
报错:
jquery-3.3.1.min.js:2 GET http://localhost:8080/zhaobiao/content/ceshi.txt 404 (Not Found)