如下所示: Passing data from Props to data in vue.js 我有: https://codesandbox.io/s/u3mr8 这会给出以下警告: ? 该函数只是将道具保存到数据中。 拖放失败,并显示以下信息: ? 你真的需要一个计算机道具的setter吗?it has no setter - a toggle component 我想出了: https://codesandbox.io/s/
我是Vue.js的新手,正在尝试显示从服务器请求的数据。我已经创建了一个新的Vue应用程序并定义了一个方法: methods: { // making a request, parsing the response<button v-on:click="getData">Get me some data</button> 但是,我不确定如何在应用程序中实际使用此数组。我想将它保