html //来源http://jsbin.com/veqodam
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html //来源http://jsbin.com/veqodam相关的知识,希望对你有一定的参考价值。
new Vue({
el: '#app',
data () {
return {
info: null
}
},
mounted () {
axios
.get('https://api.coindesk.com/v1/bpi/currentprice.json')
// .get('https://script.google.com/macros/s/AKfycbxQoO95zRAax0HBEvTilC6Jw0yXJAdRQHlcwGOKR_-eW9ox3Xw/exec?kw=apple&batch=2&max=10&option=0')
.then(response => (this.info = response))
}
})
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</head>
<body>
<div id="app">
{{ info }}
</div>
<script id="jsbin-javascript">
new Vue({
el: '#app',
data () {
return {
info: null
}
},
mounted () {
axios
.get('https://api.coindesk.com/v1/bpi/currentprice.json')
// .get('https://script.google.com/macros/s/AKfycbxQoO95zRAax0HBEvTilC6Jw0yXJAdRQHlcwGOKR_-eW9ox3Xw/exec?kw=apple&batch=2&max=10&option=0')
.then(response => (this.info = response))
}
})
</script>
<script id="jsbin-source-javascript" type="text/javascript">
new Vue({
el: '#app',
data () {
return {
info: null
}
},
mounted () {
axios
.get('https://api.coindesk.com/v1/bpi/currentprice.json')
// .get('https://script.google.com/macros/s/AKfycbxQoO95zRAax0HBEvTilC6Jw0yXJAdRQHlcwGOKR_-eW9ox3Xw/exec?kw=apple&batch=2&max=10&option=0')
.then(response => (this.info = response))
}
})</script></body>
</html>
以上是关于html //来源http://jsbin.com/veqodam的主要内容,如果未能解决你的问题,请参考以下文章
html //来源http://jsbin.com
html //来源http://jsbin.com/veqodam
html //来源http://jsbin.com/dahasaj
html //来源http://jsbin.com/wobede
html //来源http://jsbin.com/jewocem
html //来源http://jsbin.com/ticibigozu