$(this).css({ 'font-weight': 'normal' });
现在我想检查一个元素是否具有粗体或正常的font-weight propety,我该怎么做?
fontWeight = $(this).css('font-weight')
比较:
if (fontWeight == 'normal'|| fontWeight == '400') //or if (fontWeight == 'bold' || fontWeight == '700')