經安全檢測,此網站為安全網站,請放心前往原始網址!

jQuery ajax - ajax() 方法 - w3school 在線教程

實例 通過 AJAX 載入一段文本: jQuery 代碼: $(document).ready(function(){ $("#b01").click(function(){ htmlobj=$.ajax({url:"/jquery/test1.txt",async:false}); $("#myDiv").html(htmlobj.responseText); }); }); HTML 代碼: Let AJAX change this ...

www.w3school.com.cn

網址安全性掃描由 google 提供