function changeStyle(id){
// 判断该Id对应class下是否存在 名称为on的样式文件
var ofright = $("#" + id).attr("class").indexOf(" on");
// 如果已存在则表示此次触发时间为取消选中,移除该样式,否则为选中样式
if (ofright > 0) {
$("#" + id).removeClass("on");
} else {
$("#" + id).addClass("on");
}
}
// 判断该Id对应class下是否存在 名称为on的样式文件
var ofright = $("#" + id).attr("class").indexOf(" on");
// 如果已存在则表示此次触发时间为取消选中,移除该样式,否则为选中样式
if (ofright > 0) {
$("#" + id).removeClass("on");
} else {
$("#" + id).addClass("on");
}
}