有三种方法/
$("#container").append(html);
向id为container的标签中加入html这个变量的内容,是继续加入,之前的不去掉
$("#container").html(html);
向id为container的标签中加入html这个变量的内容,把之前的去掉,换成新的html的内容
document.write(html);
将html这个变量的内容作为html文件的所有内容来显示,把html文件中原有的代码都覆盖
有三种方法/
$("#container").append(html);
向id为container的标签中加入html这个变量的内容,是继续加入,之前的不去掉
$("#container").html(html);
向id为container的标签中加入html这个变量的内容,把之前的去掉,换成新的html的内容
document.write(html);
将html这个变量的内容作为html文件的所有内容来显示,把html文件中原有的代码都覆盖