<html>
<head>
<title>list</title>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<!-- 引入样式 -->
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
<!-- 引入组件库 -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<style>
#app{
margin: auto 50px;
}
</style>
</head>
<body>
<div
>
</el-table-column>
</el-table>
</div>

</div>
<script>
var app = new Vue({
el: '#app',
data() {
return {
tableData: []
}
},
mounted: function () {
var that = this ;
// get
axios.get('/oss/list')
.then(function (res) {
var data = res.data ;
that.tableData = data ;
console.log(data);
})
.catch(function (error) {
console.log(error);
});
},
methods: {
test: function () {
alert(1)
}
}
})
</script>

</body>
</html>

相关文章:

  • 2022-01-13
  • 2021-08-09
  • 2021-09-05
  • 2021-12-22
  • 2021-05-26
  • 2022-12-23
猜你喜欢
  • 2021-07-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-22
  • 2021-05-28
相关资源
相似解决方案