JavaScript 将html中空格( )转成JavaScript中的空格

  $("#tbAccountInforMation td.required").each(function() {
        var text = $(this).html().replace(/ /g, "");
        text = "<span style='color:red;'>*</span> "+text;
        $(this).html(text);
    });

原文地址:https://www.cnblogs.com/shouwangzhe-/p/3975237.html