正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -54,7 +54,7 @@ | @@ -54,7 +54,7 @@ | ||
54 | type:"GET", | 54 | type:"GET", |
55 | data:{'pid':province_id}, | 55 | data:{'pid':province_id}, |
56 | success:function(data) { | 56 | success:function(data) { |
57 | - var result = eval("(" + data + ")"); | 57 | + var result = data; |
58 | if(result.code==20000){ | 58 | if(result.code==20000){ |
59 | var mydata = "<option value=''>请选择</option>"; | 59 | var mydata = "<option value=''>请选择</option>"; |
60 | for (var i = 0; i < result.data.length; i++) { | 60 | for (var i = 0; i < result.data.length; i++) { |
@@ -77,7 +77,7 @@ | @@ -77,7 +77,7 @@ | ||
77 | type:"GET", | 77 | type:"GET", |
78 | data:{'pid':city_id}, | 78 | data:{'pid':city_id}, |
79 | success:function(data) { | 79 | success:function(data) { |
80 | - var result = eval("(" + data + ")"); | 80 | + var result = data; |
81 | if(result.code==20000){ | 81 | if(result.code==20000){ |
82 | var mydata = "<option value=''>请选择</option>"; | 82 | var mydata = "<option value=''>请选择</option>"; |
83 | for (var i = 0; i < result.data.length; i++) { | 83 | for (var i = 0; i < result.data.length; i++) { |
-
请 注册 或 登录 后发表评论