You do not need to set the value of drivingEligibility
in function.
(您无需在函数中设置drivingEligibility
的值。)
Its already bound. (它已经绑定。)
At: (在:)
<paper-toggle-button name="drivingEligibility" id="drivingEligibility" class="float-right" checked="{{drivingEligibility}}" on-change="driving"></paper-toggle-button>
Demo
(演示版)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…