<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<title>调用ajax.js文件</title>
<script type="text/javascript" src="ajax.js"><script>
<script type="text/javascript">
ajaxFun("get","car.js",true,successFn,failFn);
successFn(data){
alert(data);
}
failFn(data){
alert(data);
console.error(xhr.status)
}
</script>
</head>
<body>
</body>
</html>