function getClass(boo) {
var span = $("span.w");//获取所有的span标签 <span class="w">用户代码/UserId</span>
for (var i = 0, len = span.length; i < len; i++) {
var t = $(span[i]).text().split("/");//分割
if (boo) {
$(span[i]).before("<span>" + t[0] + "</span>");//插入新的标签
$(span[i]).remove();//删除原标签
}
else {
if (t.length <= 2)
$(span[i]).before("<span>" + t[1] + "</span>");
else
$(span[i]).before("<span>undefined</span>");
$(span[i]).remove();
}
}
}