vuejs2

    0熱度

    1回答

    對於我的Vuejs應用,我使用Vee-validate進行驗證。目前它將有效的URL標記爲http://localhost:3000,因此無效。 這是對他們的樣品也發生: http://vee-validate.logaretm.com/rules.html#rule-url 如果他們的樣本中輸入http://localhost:3000,你會看到消息The field field is not

    0熱度

    1回答

    我試圖將Vue2配置爲在本地開發環境中與Silex框架應用程序一起運行。我使用CLI工具創建了Vue應用程序。將/build/dev-server.js中的打開URL從http://localhost/+port更改爲http://localhost/,因此npm run dev將打開Silex應用程序。並在php視圖中添加了以下腳本url:http://localhost:8080/app.js

    0熱度

    2回答

    我想$emit在vue.js 2一些數據到所有的子組件,這是我的代碼: 根組件 const app = new Vue({ created: function(){ // here is some promise and after it done the below line runs this.$emit('foo', 'bar'); } });

    1熱度

    1回答

    <span class="input-group-btn" style="min-width: 100px"> <select class="form-control" v-model="field.related_field"> <option value="null"></option> <option v-for="f in fields" v-

    0熱度

    1回答

    使用vue對我的生命週期方法有困難。看來我的咖啡已完成的變量沒有顯示出來。我不知道我是否真的傳遞了正確的變量來顯示它。此外,當我點擊其他按鈕我得到了一個未定義一些奇怪的原因,但只有當我點擊三個按鈕複式倍 const DrinkName = new Vue({}); const coffeeFinished = new Vue({}); Vue.component("customer-com

    1熱度

    1回答

    我該如何摧毀這位守望者?當我的異步數據從父組件加載時,我只需要一次在我的子組件中。 export default { ... watch: { data: function(){ this.sortBy(); }, }, ... } 格雷戈爾。)

    0熱度

    3回答

    對於接收到的響應,我有init數組ArtificialInsemination [],但它沒有顯示或加載表中的記錄。當我點擊按鈕時,它調用函數viewRecords併成功發送HTTP請求,但不加載到表中。 <div id="ArtificialInsemination" class="container"> <button v-on:click="viewRecords">View R

    2熱度

    1回答

    我在vuejs中有一個用於文件上傳的小組件(使用axios)。我試圖從發出文件上傳這樣的迴應: methods: { ... upload(){ axios.put(URL).then(response => { console.log('response', response) this.$emit('uploaded', response)

    1熱度

    1回答

    大師, 我有我運行如下及VueJS子組件工作正常 - <app-shopping :categories="categories" :imageList="imageList"> 現在我想爲此添加一條單獨的路線,但我不確定如何在路線聲明中通過categories和imageList道具。我正在這樣做 - import appShopping from '../components/AppSho

    1熱度

    1回答

    我想從JSON文件a.json中排序JSON數組。 的陣列來了是這樣的: {"data": [ {"exception":"", "name":"Data Server1", "alias":"TOR-Server", "delayed":"NO", }, {"exception":"", "name":