checkbox 只能取到 value值 。id都取不到
checkbox-group 中 checkbox 只能取到 value值 。id都取不到。自定义的dataset 的也是一样,都取不到值
checkbox-group 中 checkbox 只能取到 value值 。id都取不到。自定义的dataset 的也是一样,都取不到值
<checkbox-group class=“radio-group” bindchange=“checkChange”>
<label class=“hongbaocss”>
<checkbox id=‘a’ value=“hongbao_check” checked=“{{check_hongbao}}” />红包¥{{hongbao}}元
</label>
<label class=“hongbaocss”>
<checkbox id=‘b’ value=“youhuiquan_check” checked=“{{check_youhuiquan}}” />优惠券¥{{youhuiquan}}元
</label>
</checkbox-group>
{type: "change", timeStamp: 41720, target: {…}, currentTarget: {…}, detail: {…}}
currentTarget:{id: "", offsetLeft: 66, offsetTop: 376, dataset: {…}}
detail:
value:Array(1)
0:"youhuiquan_check"
length:1
__proto__:Array(0)
__proto__:Object
target:
dataset:{}
id:""
offsetLeft:66
offsetTop:376
__proto__:Object
timeStamp:41720
type:"change"
__proto__:Object