作为小白学习 VUE,然后改了 vue 的限定符,出现了"{{ something }}"和新的限定符都无法使用的情况 代码如下:
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" rel="stylesheet">
<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://unpkg.com/vue/dist/vue.js"></script>
</head>
<body>
<div id="app">
${ message }}
</div>
<script>
var app = new Vue({
delimiters: ['${', '}']
el: '#app',
data: {
message: 'Hello Vue!'
}
})
</script>
</body>
</html>
怎么才能既不冲突又能正常工作呢?
1
oh 2017-05-14 11:03:53 +08:00 via iPhone 1
delimiters 那行最后少了个逗号
|
2
SlipStupig OP @oh 不好意思丢人了
|
3
qiqico 2017-05-14 12:09:26 +08:00
应该学会调试
|
4
dangyuluo 2017-05-14 12:40:46 +08:00
Using console tool.
|
5
SourceMan 2017-05-14 14:33:23 +08:00 via iPhone
23333
|