从前台获取后台数据库里的值并返回页面上 前台页面用的html5 ajax写到了js里

日期:2021-11-12 01:42:59 人气:1

从前台获取后台数据库里的值并返回页面上 前台页面用的html5 ajax写到了js里

应用jquery吧。
$(document).ready(function(){
$("#b01").click(function(){
htmlobj=$.ajax({url:"/jquery/test1.txt",async:false});
$("#myDiv").html(htmlobj.responseText);
});
});
    A+
热门评论