1、怎么把option中的value的固定值通过接口提交给后台?运用ng-option我只会写取字典的方式向后台传值,如果我把value写固定了,应该怎么写?烦请大家参考下,谢谢!
上面那个select是取字典来写的 烦请大家看下,下面的如果把值写成固定的,怎么传到后台!
这份js也是字典的写法 大家可以看下,我需要那种写固定的值传入给后台,谢谢!
The value of the option you selected will be assigned to the ng-model of select
After you finish selecting, console the value of ng-model, it will be the actionType you wrote above
console.log($scope.actionType);
I don’t quite understand what you mean
ng-model绑定数据; ng-change="somefunction()"; somefunction( $http... )
The value of the option you selected will be assigned to the ng-model of select
After you finish selecting, console the value of ng-model, it will be the actionType you wrote above
I don’t quite understand what you mean