两个版本对应的文件名
就是vue的完整版和非完整版
- vue.js
- vue.runtime.js
建议去用BootCDN的
BootCDN的网站链接
区别
template 和 render 怎么用
vue完整版template的使用,直接写到html里面,或者javascript里面
<template>
<div id="app">
{{n}}
<button @click="add">+1</button>
</div>
</template>
vue非完整版只能写到render里面
render(h){
return h('div',[this.n,h('button',{on:{click:this.add}},'+1')])
},
如何用codesandbox.io 写 Vue 代码
这样就可以在codesandbox.io里写代码啦