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

field表单数据获取的问题 #300

Closed
mao6 opened this issue Jun 7, 2018 · 3 comments
Closed

field表单数据获取的问题 #300

mao6 opened this issue Jun 7, 2018 · 3 comments

Comments

@mao6
Copy link

mao6 commented Jun 7, 2018

field的value属性不支持双向数据绑定吗?在输入框中输入信息之后绑定的变量值没有改变,赋初值是可以的,谁能告诉我该怎么办?

@BadmintonCode
Copy link

bind:change监听

@rex-zsd
Copy link
Collaborator

rex-zsd commented Jun 18, 2018

小程序目前不支持双向绑定的
可以自己监听bind:change事件设置值
可以参考组件文档

@rex-zsd rex-zsd closed this as completed Jun 18, 2018
@shidiyanmo
Copy link

data: {
field: {
focus: true,
title: '收货人',
placeholder: '名字',
value: 'test'
}

handleFieldBlur(e) {
console.log(this.field.value);
}
报错 很恶心

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants