About the button submit in vant weapp does not take effect

Put the "culprit" first:

Insert picture description here

You can see that the official website of vant weapp clearly states that van-button has form-type attributes

Insert picture description here

After trying many times, the usage of native and van-button is always natively effective, van-button is not effective, here specifically means that form-type is not effective.

The solution is: use native

Insert picture description here

This is the explanation of this attribute on the official website of WeChat Mini Program!

PS: Written into the document, people always think that there is a problem with their own way of use, and the end result is that this thing can't be realized at all!

Guess you like

Origin blog.csdn.net/lb1135909273/article/details/108712501