The "data" option should be a function that returns a per-instance value in component definitions.
来源:互联网 发布:雨田开版软件 编辑:程序博客网 时间:2024/06/05 23:58
问题是这样的 vue我建了个vue组件
代码如下
export default { //props: ["data-add"],data:{},mounted:function(){var m=this;},methods:{ }}什么都还没做 莫名奇妙就报错了
The "data" option should be a function that returns a per-instance value in component definitions.
提示是 data是一个函数 所以 这里我们可以这么写
export default { //props: ["data-add"],data:function(){return {}},mounted:function(){var m=this;},methods:{ }}
好,点不点赞看你了,或者 可以加入 我的 群153181864 前端交流群 ,绝对原创,转载请附上 本微博链接。
阅读全文
0 0
- The "data" option should be a function that returns a per-instance value in component definitions.
- CareerCup Write a function that given a position returns the digit in that 0123456789101112131415..
- Write a function that takes a string as input and returns the string reversed.
- A function returns function
- Friend function should be a public function, if it is in a class.
- When executing a query what a callback function should be
- mssql出错:A SELECT statement that assigns a value to a variable must not be combined with data-retrieval operations.
- A SELECT statement that assigns a value to a variable must not be combined with data-retrieval opera
- function should return a value; 'void' return type assumed
- E Looper : WARNING: The Looper class instance count has over a limit(100). There should be some l
- A Static Method Should Be Accessed In A Static Way
- Given a function RAND5 that generates random numbers in the range 0 to 5 write a function RAND7?
- 71.Which arithmetic operations can be performed on a column by using a SQL function that is built in
- The file contains a character that cannot be represented in the current code page (936)
- warning C4819: The file contains a character that cannot be represented in the current code page
- VSE: The file contains a character that cannot be represented in the current code page (936).
- warning C4819: The file contains a character that cannot be represented in the current code page
- warning C4819: The file contains a character that cannot be represented in the current code page
- [java]微服务架构连载No6 服务保护门之网关Zuul
- 开源纯C#工控网关+组态软件
- .NET十年回顾
- jenkins~集群分发功能的具体实现
- 401 Palindromes(回文串与镜像串)
- The "data" option should be a function that returns a per-instance value in component definitions.
- css复习——opacity(不透明度)、IE6固定定位、border-radius(圆角)
- Java中"=="和equals方法的区别
- python里使用正则表达式排除集合里字符的功能
- 例题6-7 树的层次遍历 BFS遍历
- 第二章 在HTML中使用JavaScript
- POJ 3581 Sequence 笔记
- 遗传算法简单介绍与MATLAB实现(三)
- android studio创建横屏layout-land