引入后端

68 阅读1分钟

(function(){ .ajax({ url:"http://localhost:5500/tag", type:"GET", success:function(res){ if(res.status===200){ const data=res.data; let html=""; for (let index = 0; index < data.length; index++) { const element = data[index]; html+=element.text;

                   }
                   $(".coi-xs-12").html(html);
                }
                
                console.log(res)

            },
            error:function(err){
                console.log(err);

            }

        })
    })