参考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>
<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>
本文介绍了一种在使用Angular框架时遇到的选择器无响应的问题及其解决方案。通过在选择器外层添加data-tap-disabled属性,可以有效解决移动端及PC端的选择器无法触发事件的问题。
489

被折叠的 条评论
为什么被折叠?



