<template>
<div class="hello">
<table border="1px">
<tbody>
<tr v-for="contents in content">
<td >{{contents.title}}</td>
<td >{{contents.content}}</td>
<td >{{contents.title}}</td>
<td><a :href="contents.link">{{contents.link}}</a></td>
<td><input type="text" :value="contents.title"/></td>
<td >{{contents.copyright}}</td>
</tr>
</tbody>
</table>
</div>
</template>
<script>
export default {
name: 'HelloWorld',
data(){
return{
content:[]
}
},
mounted:function () {
this.axios.post("http://api.komavideo.com/news/list").then(body=>{
this.content=body.data;
});
}
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="less">
</style>