<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<body>
<script>
$(function(){
var vue=new Vue({
el: "#workingArea",
data:{
beans:[]
}
});
var url="categories";
$.ajax({
url: url,
success: function(result){
console.log(result);
vue.beans=result;
}
});
});
</script>
<div id="workingArea" >
<h1 class="label label-info" >分类管理</h1>
<br>
<br>
<div class="listDataTableDiv">
<table class="table table-striped table-bordered table-hover table-condensed">
<thead>
<tr class="success">
<th>ID</th>
<th>图片</th&
vue展示AJAX数据(前后端分离)
最新推荐文章于 2024-04-02 04:04:01 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)