![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
angularjs
我是全栈架构师
高级架构师
展开
-
ERROR Error: If ngModel is used within a form tag, either the name attribute must be set or the form
ERROR Error: If ngModel is used within a form tag, either the name attribute must be set or the form control must be defined as 'standalone' in ngModelOptions.解决方案1:在input标签上加上name属性解决方案2:在input标原创 2017-12-20 10:12:50 · 1472 阅读 · 0 评论 -
AngularJs表单提交
页面<body ng-app="myApp"> <form ng-submit="submitForm()" ng-controller="carController"> 汽车品牌:<input type="text" ng-model="car.brand"/> <br/> 汽车颜色:<input type="text" ng-model="car.color"/> <br/>原创 2017-12-15 12:37:12 · 4913 阅读 · 0 评论