easyui checkbox 获取选中, 赋值

官网上面的例子是
$(’#ck’).iCheckbox({
label: ‘Apple:’,
value: ‘Apple’,
checked: true
});
这样设置选中的。。
不知道是否由于个人easyui版本问题
iCheckbox 方法是提示错误的web

后面改成svg

$(’#ck’).checkbox({
checked: true
});ui

这样就能够设置选中xml

判断是否选中就是 $(’#ck’).checkbox(‘options’).checked 这样能够取得选中值it