Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用这个开关。我试过使用
$("[id='switchId']").bootstrapSwitch('setState', false);
无济于事。
而不是 setState :使用这个 $("[id='switchId']").bootstrapSwitch("state", true);