angularjs select ng-options点击没有反应

参考https://segmentfault.com/a/1190000008461107

html 写道
<div>
<select ng-model="selectedGraph.selected.graphId" class="" id="qtSelect" ng-change="selectGraph()"
ng-options="graph.graphId as graph.graphName for graph in graphList"></select>
</div>

 页面渲染之后无论怎么点击都无反应,在pc端和手机端都没有。百度之后原来需要加个属性(data-tap-disabled="true")就可以了。

<div data-tap-disabled="true">
        	<select ng-model="selectedGraph.selected.graphId" class="" id="qtSelect" ng-change="selectGraph()"
                    ng-options="graph.graphId as graph.graphName for graph in graphList"></select>
        </div>

 

猜你喜欢

转载自08284008.iteye.com/blog/2379789