alert改变文字颜色 var meg="红颜色" var colormeg=" <span style='color: red;'>"+meg+"</span>" alert("我用的是"+colormeg);