多种方式实现ajax效果 1.不依赖jquery,使用XMLHttprequest<div><a onclick="func1()">dianwo</a><a class="btn" onclick="func1();">点我</a> </div> <script>function func1() {var xml1=new XMLHttpRequest();xml1.onreadystatechange=function(){if(xml1.readyState==4){console.log(xml1.responseText)}};xml1.open(GET,/xml/);xml1.send(hello)}</script>def index(request):return render(request,index.html) def xml(requ...