為什么顯示我的Vue沒(méi)有定義?
<!DOCTYPE html>
<html>
<head>
? ? <meta charset="UTF-8">
? ? <title>Title</title>
? ? <style>
? ? ? .bg{
? ? ? ? color:red;
? ? ? }
? ? </style>
? ? <script type="text/javascript" src="https://cdn.bootcss.com/vue/2.6.0/vue.min.js"></script>
</head>
<body>
<div id="app">
? <div class="bg">
? ? hello world
? ? {{msg}}
? </div>
? <div class="bg">
? ? {{msg}}
? ? {{count}}
? </div>
</div>
<script>
? new Vue({
? ? el: '#app',
? ? data: {
? ? ? msg: 'hello Vue',
? ? ? count:0,
? ? }
? })
</script>
</body>
</html>
2019-08-07
<script>標(biāo)簽,添加type屬性試試
2019-03-22
2019-03-22
抱歉!
由于底層 CDN 服務(wù)故障,導(dǎo)致 BootCDN 爆炸(2019.3.22上午至現(xiàn)在),請(qǐng)各位耐心等待,或者修改引用的鏈接。