Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于多列选择器的onChange事件 #104

Closed
qichhhhh opened this issue Apr 18, 2017 · 1 comment
Closed

关于多列选择器的onChange事件 #104

qichhhhh opened this issue Apr 18, 2017 · 1 comment
Labels

Comments

@qichhhhh
Copy link

qichhhhh commented Apr 18, 2017

先上代码

            weui.picker([{ label: 1, value: 1 }], [{ label: 2, value: 2 }], {
                onChange: function (result) {
                    console.log(result);
                    console.log(result[0]);
                    console.log(result[1]);
                    console.log("--------");
                },
                id: 'picker'
            });

控制台打印的结果是
yyyyyy
在初始化的时候触发了一次onChange事件
但是此时获取不到result[1]

@BearJ BearJ added the bug label Apr 18, 2017
BearJ pushed a commit that referenced this issue Apr 18, 2017
@BearJ
Copy link
Collaborator

BearJ commented Jul 18, 2017

v.1.1.2 fix~

@BearJ BearJ closed this as completed Jul 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants