我真的对Typescript感到困惑。现在我想在点击按钮上创建事件来改变google网站。但如果按下按钮,控制台显示将显示以下错误消息。控制台DevTools上的错误消息无法加载SourceMap:无法加载chrome-extension://fheoggkfdfchfphceeifdbepaooicaho/sourceMap/chrome/content.map: DevTools的内容错误:状态代码404,net::ERR_UNKNOWN_URL_SCHEME

我的开发环境是使用vue.js、vuetify.js和Typescript的Nuxt.js。我是初级工程师,几个月前加入了IT公司。但我的新项目是基于Nuxt.js和Typescript的。关于我下面的代码,请给我一些建议。
<template>
<v-card>
<v-text-filed><v-btn @click="onClickButton">google</v-btn></v-text-filed>
</v-card>
</template>
<script lang="ts">
import {Component,Vue} from'nuxt-property-decorator'
import axios from 'axios'
@Component
export default class typeI scriptLesson extends Vue{
public google:any="";
onClickButton(){
this.google='https://google.com';
}
}
</script>发布于 2020-08-04 20:21:57
v-text-filed打字错误。我修复了下面的代码。谢谢笨蛋香蕉!!
<template>
<v-card>
<v-text-field><v-btn @click="onClickButton">google</v-btn></v-text-field>
</v-card>
</template>
<script lang="ts">
import {Component,Vue} from'nuxt-property-decorator'
import axios from 'axios'
@Component
export default class typeI scriptLesson extends Vue{
public google:any="";
onClickButton(){
this.google='https://google.com';
}
}
</script>https://stackoverflow.com/questions/62659959
复制相似问题