1,请下载Devtools以达到更好的开发体验
Download the Vue Devtools extension for a better development experience:
https://github.com/vuejs/vue-devtools
注意:在下载了Devtools之后还是出现提示,就打开拓展程序的允许文件访问。
2,你正在运行一个开发者版本的vue,请确保在生产环境下不要引用vue.js文件,需要引用vue.min.js替换vue.js文件来解决,或者关闭提示。
You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html
注意:关闭提示的方法在vuejs官网的学习菜单下—API菜单下
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>初识vue</title>
<!-- 引入vue:开发环境用vue.js这个文件,自带报错警告。生产环境用vue.min.js,体积更小。 -->
<!-- 引入vue之后:全局就会多出一个vue构造函数 -->
<script type="text/javascript" src="../js/vue.js"></script>
<script type="text/javascript">
Vue.config.productionTip = false; // 阻止vue在启动时生成生产提示
</script>
</head>
<body>
</body>
</html>
注意:如果此处的配置任然没有生效,那么就是vue.js的源码更新了,他的延时器设置的时间为0.