anjularjs中下拉菜单初始值得设置

问题:

在设置下拉菜单初始值时,显示为空白,而不是我们设定的初始值。如下:


解决方法:

在js中设置topic.exam_type的初始值,如下:

$scope.topic.exam_type = '0';

你可能感兴趣的:(anjularjs中下拉菜单初始值得设置)