从jQuery1.4开始,removeClass函数接受一个函数参数。
$("#hello").removeClass (function (index, className) { return (className.match (/(^|s)color-S+/g) || []).join(' ');});
从jQuery1.4开始,removeClass函数接受一个函数参数。
$("#hello").removeClass (function (index, className) { return (className.match (/(^|s)color-S+/g) || []).join(' ');});