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

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

posted @ 2014-09-16 16:41  廖东海  阅读(2226)  评论(0编辑  收藏  举报