字符串未定义

时间:2019-01-17 10:48:15

标签: nuxt.js

我是nuxt和Vue的新手,我正在跟踪我下载的nuxt教程,但遇到了string not defined错误。

我该如何解决?

props: {
  title: {
    type: string,
    required: true
  },
  previewtext: {
    type: string,
    required: true

1 个答案:

答案 0 :(得分:0)

您好@Irene Mercy您必须像这样“字符串”而不是这个“字符串”那样写字符串 请参阅文档。

jQuery(document).ready(function()
{
  jQuery("#intro").css("background-color", "yellow");
});
console.log("it works");

https://fr.vuejs.org/v2/guide/components-props.html

谢谢。