第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會有你想問的

變量未在 vue js 中更新,顯示未定義變量

變量未在 vue js 中更新,顯示未定義變量

收到一只叮咚 2021-06-17 10:02:04
我試圖totalQuestions在 html 中綁定變量的更新值。但它顯示以下錯(cuò)誤。誰能告訴我我哪里做錯(cuò)了。HTML<label><span class="red-text">Question No: </span><span>1 out of {{totalQuestions}}</span>/</label>多變的:date() {        return {            examKey: '',            questionsIds: '',            duration: 0,            questionList: [],            totalQuestions: ''        }    },方法methods: {    loadQuestionSet: function() {            this.examKey = this.$route.params.key;            this.$http.get(baseUrl.BASE_URL + 'question-set/key/' + this.examKey).then(                (resp) => {                    this.duration = resp.data.duration;                    this.questionsIds = resp.data.questionIds;                    this.loadQuestions();                },                (err) => {                    this.$router.push("/exam");                }            );        },        loadQuestions: function() {            this.$http.post(baseUrl.BASE_URL + 'question/exam/questions', this.questionsIds).then(                (resp) => {                    this.questionList = resp.data;                    this.totalQuestions = this.questionList.length                },                (err) => {                    console.log(err);                }            );        }},beforeMount: function() {        this.loadQuestionSet();    }
查看完整描述

1 回答

?
臨摹微笑

TA貢獻(xiàn)1982條經(jīng)驗(yàn) 獲得超2個(gè)贊

你有一個(gè)錯(cuò)字:date()應(yīng)該是data()。


查看完整回答
反對 回復(fù) 2021-06-18
  • 1 回答
  • 0 關(guān)注
  • 311 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號