1.下载安装d3
npm install d3 --save-dev
或者
cnpm install d3 --save-dev
2.引入d3
<template>
<div>
<div>hello d3</div>
</div>
</template>
<script>
import * as d3 from 'd3';//引入d3
export default {
data() {
return {
name: "我的名字是test01",
}
},
methods:{
},
created(){
},
mounted(){
console.log(d3)
},
beforeMount(){
},
watch: {
// number(newValue, oldValue) {
// }
},
components: {},
//props: ['name'],
}
</script>
<style>
</style>