我是nuxt和Vue的新手,我正在跟踪我下载的nuxt教程,但遇到了string not defined
错误。
我该如何解决?
props: {
title: {
type: string,
required: true
},
previewtext: {
type: string,
required: true
答案 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
谢谢。