Android prevents buttons in multiple forms from being triggered when an event is submitted

Click the take photo button to execute the function getphoto(), and the function funcsubmit() ng submit executed by the form automatically. What would need to be changed to prevent this from happening? It only performs the function of getphoto () without running ng submit. PS.: this code is part of the application. Android mobile is developed with ion framework

Solution 1: Usage:

Because < button > will automatically call commit.

The above is the whole content of this article. I hope you can like it.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>