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":