ng-options一般有以下用法: 数组作为数据源: label for value in array select as label for value in array label group by group for value in array label disable when disable for value in array label group by group for value in array track by trackexpr label disable whe
html 表单 dom 注意跟表单的name值一致 <script type="text/javascript"> function checkForm() { var theForm = document.form1; if(theForm.username.value=="") //html 表单 dom 注意跟表单的name值一致 { window.alert("用户名不能为空"); return false; }else if