How does Ajax reference JS files

CSDN Q & A 2022-05-14 13:20:57 阅读数:262

ajaxreferencejsfiles

Want to use ajax Achieve local page refresh .

I can't find... On the Internet ajax Of js file , How .




Take the answer :
<script src="jquery-1.12.4/jquery-1.12.4.js"></script>
$("button").click(function(){ $.ajax({
url:"demo_test.txt",success:function(result){ $("#div1").html(result); }});});

版权声明:本文为[CSDN Q & A]所创,转载请带上原文链接,感谢。 https://qdmana.com/2022/134/202205071936118820.html