Skip to content

返回值问题:this.$refs.editableTable.getValuesSync() #1675

Closed
@lanwaixian

Description

@lanwaixian
版本号:

2.2.1

问题描述:

let { error, values } = this.$refs.editableTable.getValuesSync()
若使用{ error, values } 可正常获取返回值
若使用{ error1, values1 } 或其他变量名,则接收到的返回值均为undefined

截图&代码:

友情提示: 未按格式要求发帖,会直接删掉。

Activity

lsqGitHub716

lsqGitHub716 commented on Sep 8, 2020

@lsqGitHub716

百度参考es6的解构函数语法 http://es6.ruanyifeng.com

rickding

rickding commented on Sep 13, 2020

@rickding

解构赋值时的写法,let {a} = {a: 1},相当于let {a: a} = {a: 1},注意简写时需要属性名称相同。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @zhangdaiscott@rickding@lanwaixian@lsqGitHub716

        Issue actions

          返回值问题:this.$refs.editableTable.getValuesSync() · Issue #1675 · jeecgboot/JeecgBoot