Authored by pangjie

修改校验的bug

@@ -95,7 +95,7 @@ components.prototype={ @@ -95,7 +95,7 @@ components.prototype={
95 //下拉选择 95 //下拉选择
96 $("select", that.el).each(function() { 96 $("select", that.el).each(function() {
97 var value = $.trim($(this).val()); 97 var value = $.trim($(this).val());
98 - var name = $(this).children(":first").text().replace(/[请选择]/g, ""); 98 + var name = $(this).children(":first").text().replace(/请选择/g, "");
99 99
100 if ($(this).attr("required") && (value == -1 || value == "")) { 100 if ($(this).attr("required") && (value == -1 || value == "")) {
101 err.push("<p>请选择 " + name + "</p>"); 101 err.push("<p>请选择 " + name + "</p>");