<script>
function shouye(){
var data1 ={
}
var url = "http://localhost:8080/office/shouye";
$.ajax({
type: "post",
url: url,
data: data1,
cache: false,
async : false,
success: function (data ,textStatus, jqXHR)
{
//<tr><td style="width: 400px;">天津校长来我校参观交流2</td><td ><b id>[07-20]</b></td></tr>
if(data.code == 200){
//alert("加载成功啦");
for(var i = 0;i<data.shuzu.length;i++){
//工作动态
// alert(data.shuzu[i][4]);
if(2==data.shuzu[i][4]){
//append('<tr style="width: 600px;border-bottom: 1px dashed black; display: block; float:left;"><td style="float:left;"><a href="content.html?id='+data.shuzu[i][0]+'"style="text-decoration: none;">'+data.shuzu[i][1]+'</a></td><td style="float:right">'+'['+data.shuzu[i][2]+']'+'</td></tr>');
$("#first_low_right_table").app
ajax+sevrlet+html+数据库 实现前后端的简单交互
最新推荐文章于 2024-05-12 22:45:54 发布