当以嵌套表单提交时会发生什么?
如果我写的话会起作用吗??? - 我的 html 文件是 angularjs,如下所示:
<form>
<form>
</form>
<form>
</form>
</form>
</form>
最佳答案
你不能在 HTML 中嵌套表单,但在 AngularJS 中我们有 ng-form这应该可以满足您的要求。
<form name="parentForm">
<div ng-form="childForm">
</div>
</form>
parentForm
将被提交,并且 parentForm
和 childForm
都可以从关联的 $scope
访问有了这个观点。
关于javascript - 我可以在表格中包含表格吗?我正在研究 AngularJS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24009468/