How does Mini Program based on wepy clear the value of input in the bindblur event of input

Mini Program based on wepy
cannot clear the input in input when the input control loses focus

<input bindblur="addTag" value="{{value}}"/>

...

data = {
    value: ""
}

...

methods = {
    addTag() {
        this.value = "";//  ???
    }
}

Mini Program"s official development document says that the value property of input specifies the initial value, so does it only work during initialization?

clipboard.png

Please give me some advice

Apr.06,2021

is the initial value, and when you enter it in the input box, the value value does not change.
so you have to add a binding event bindinput, to assign the value entered each time to value.

Menu