zoukankan      html  css  js  c++  java
  • 写过的bug

    const actions={
    updateUsername: ( { commit},value )=>{
    console.log("actions updateUsername");
    commit('updateUsername',value)
    }
    }
    不能这样写{commit,value}


    props传boolean 要用单引号
    componen-title='false'
    双引号会报错 Invalid prop: type check failed for prop "componenTitle". Expected Boolean, got String.
    
    
    ...mapActions传值
    
    Vue组件
    <input @keyup.enter="renovateName(listName)" type="text" v-model="input" placeholder="updateUsername" /> methods:{   ...mapActions(['updateUsername']),   renovateName:function(x){   this.updateUsername(x).then((data)=>{     console.log("Promise resolve:");   console.log(data)   })   } } store/index.js

    const actions={ updateUsername: ( { commit},value )=>{ console.log("actions updateUsername"); console.log(value); return new Promise((resolve, reject) => { setTimeout(() => { commit('updateUsername',value); resolve("2131231") }, 1000) }) } }


     
  • 相关阅读:
    Mybatis入门
    结合模板导出PDF文件
    生成Excel文件
    生成PDF文件
    BeanFactory not initialized or already closed
    Oracle数据库的视图
    ORACLE简介
    Cookie和session
    【cookie的使用】&【Session】
    过滤器的相关知识
  • 原文地址:https://www.cnblogs.com/geekjsp/p/10009476.html
Copyright © 2011-2022 走看看