当我访问 Google Drive 并检查网页时,我看到了很多标签。这些是什么?它们似乎用于我的用户特定内容(我拥有哪些文件)。我的浏览器如何知道如何渲染它?
我正在尝试使用 vue-class-component 和 typescript 创建一个 vue 组件(在这里找到https://github.com/vuejs/vue-class-component)。据我了解,数据是在类中定义的,正如我在下面所做的那样 - 但我收到了错误:
"[Vue warn]: Property or method "test" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property."
Run Code Online (Sandbox Code Playgroud)
这是我的实际代码的精简版本,但它仍然不起作用:
<template>
<div id="vue-test">
<input v-model="test"/>
{{test}}
</div>
</template>
<script lang="ts">
import Vue from 'vue';
import Component from 'vue-class-component';
@Component({
})
export default class AppearanceDialogVue extends Vue {
public test: string = '100'; …Run Code Online (Sandbox Code Playgroud)