【发布时间】:2018-07-23 20:11:12
【问题描述】:
我将ion-range 与pin 和steps 一起使用。我在范围引脚中获得了当前值,但我想在它旁边添加/附加一些文本。
到目前为止,在 ionic API 和文档中,我没有找到修改范围引脚内容的方法,所以我正在考虑可能通过代码附加一个跨度,但到目前为止我知道使用 .append() 函数来自 jQuery。 range pin的html是:
<div class="range-pin" role="presentation">1</div>
所以我想这样显示:
<div class="range-pin" role="presentation">1 item</div>
【问题讨论】: