Jquery拆分以符号隔开的字符串
$(".properCharater").each(function () {
var j = 0;
var properCharater = $(this).next("input").val();
if (properCharater != null) {
var properSplit = properCharater.split(",");
for (var i = 0; i < properSplit.length - 1; i++) {
if (properSplit[i] != null && properSplit[i] != '') {
j++;
$(this).append("<span>" + properSplit[i] + "</span>");
$(this).append(" ");
}
if (j == 3) {
break;
}
}
}
})