// break, continue在each等迭代器里都不可用
// return false = break
// return true = continue
function isClickedSelectedBodyType(self) {
var selected = null;
$('.body_type_select_button').each(function () {
var title = this.getElementsByClassName('img-title')[0];
selected = this;
if ($(title).css('color') === selectedBodyTypeFontColor) {
if (selected === self) {
return false; // break
}
}
});
return self === selected;
}