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

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

Vue 賦值問(wèn)題

Vue 賦值問(wèn)題

牛魔王的故事 2019-03-15 13:15:31
最近再學(xué)習(xí) Vue.js想把 API 那里獲得的數(shù)據(jù)賦值給 Post_List,但是打印出來(lái)變量一直沒(méi)變 打印出來(lái)始終是 a?對(duì) JS 不太了解,望大家指點(diǎn)下 export default {        data() {            const Login_Scope = this;            let Post_List = 'a';            axios.get('/api/postList')                .then(function (response) {                    console.log(response);                    Login_Scope.Post_List = response.data;                })                .catch(function (error) {                    // vm.answer = 'Error! Could not reach the API. ' + error                });            console.log(Post_List);            return {                postList: Post_List,            }        }    };
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 323 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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