If you wanted to make sure that a new offer can only be taken if its amount is higher than the previous offer, then all you have to do is add a validation function to the ref declaration.
如果想确保在新的提供值的数量比原有提供值更高时,只接受新的提供值,那么仅需为ref声明添加验证函数。
If you wanted to make sure that a new offer can only be taken if its amount is higher than the previous offer, then all you have to do is add a validation function to the ref declaration.
如果想确保在新的提供值的数量比原有提供值更高时,只接受新的提供值,那么仅需为ref声明添加验证函数。
应用推荐