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