`
08284008
  • 浏览: 48737 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论

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>

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics