无线开关:<div id="wlan_enable_div" class="make-switch" data-on="success" data-off="warning"><input type="checkbox" id="enable" name="enable" checked></div>
if(info.WLANConfiguration.Enable=='1')
{//无线打开
$('#wlan_enable_id').bootstrapSwitch('toggleState');
$('#wlan_enable_id').bootstrapSwitch('setState', true);
}else
{//无线关闭
$('#wlan_enable_div').bootstrapSwitch('toggleState');
$('#wlan_enable_div').bootstrapSwitch('setState', false);
}
具体见官网 http://www.bootcss.com/p/bootstrap-switch/