gpt4 book ai didi

html - ng-click for button 不适用于数据表的移动 View

转载 作者:行者123 更新时间:2023-11-28 02:51:34 25 4
gpt4 key购买 nike

谁能帮忙找出为什么 ng-click 在 Datatable 的移动 View 上不起作用?

 <tr class="child">
<td class="child" colspan="3">
<ul data-dtr-index="0">
<li data-dtr-index="3" data-dt-row="0" data-dt-column="3">
<span class="dtr-title">
<div class="table-header">
<span class="column-title ng-binding">Location</span>
</div>
</span>
<span class="dtr-data">19107</span>
</li>
<li data-dtr-index="4" data-dt-row="0" data-dt-column="4">
<span class="dtr-title">
<div class="table-header">
<span class="column-title ng-binding">Status</span>
</div>
</span>
<span class="dtr-data">
<select ng-model="x.ACT_STATUS" class="ng-pristine ng-untouched ng-valid ng-empty" aria-invalid="false">
<option value="? object:null ?"></option>
<option value="Y">YES</option>
<option value="N">NO</option>
</select>
</span>
</li>
<li data-dtr-index="5" data-dt-row="0" data-dt-column="5">
<span class="dtr-title">
<div class="table-header">
<span class="column-title ng-binding"></span>
</div>
</span>
<span class="dtr-data"><button class="md-raised md-accent md-button md-default-theme md-ink-ripple" type="button" ng-transclude="" ng-click="update('x')"><span class="ng-scope">
Save
</span></button></span>
</li>
</ul>
</td>
</tr>

最佳答案

您可能需要显示更多代码。可能是你需要ngTouch ng-click 可以在移动设备上使用。然后,您将通过以下方式将其注入(inject)到您的模块中:

angular.module('app',['ngTouch']);

关于html - ng-click for button 不适用于数据表的移动 View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46650132/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com