el.removeClass (function (index, css) {
return (css.match (/(^|\s)star\S+/g) || []).join(' ');//移除以“star”开头的类
});
转载于:https://www.cnblogs.com/rellame/p/5387502.html
el.removeClass (function (index, css) {
return (css.match (/(^|\s)star\S+/g) || []).join(' ');//移除以“star”开头的类
});
转载于:https://www.cnblogs.com/rellame/p/5387502.html