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

bind-value无法实现输入框绑定 #36

Closed
devtip opened this issue Nov 4, 2017 · 1 comment
Closed

bind-value无法实现输入框绑定 #36

devtip opened this issue Nov 4, 2017 · 1 comment

Comments

@devtip
Copy link

devtip commented Nov 4, 2017

表单输入框一节中bind-value无法实现绑定,代码示例如下:

var MyApp = san.defineComponent({
    template: `
    <div>
        <input type="text" bind-value="name">
        <p>{{= name =}}</p>
    </div>`,

    initData: function () {
        return {
            name: 'San'
        }
    }
});

var myApp = new MyApp();
myApp.attach(document.body);

[但是看了下后面的内容,比如select一节, 你们想表达的意思似乎就是这种插值方法:

 <input type="text" value="{= name =}">

image

@LeuisKen
Copy link
Contributor

LeuisKen commented Nov 9, 2017

已确认是文档更新遗漏的问题,马上处理。

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

3 participants