修改 dns monitor 页面解析json的错误
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -9,7 +9,7 @@ function queryCurrentInfo() { | @@ -9,7 +9,7 @@ function queryCurrentInfo() { | ||
9 | type: "get", | 9 | type: "get", |
10 | dataType: "json", | 10 | dataType: "json", |
11 | success : function(data) { | 11 | success : function(data) { |
12 | - var dataObj = eval(data); | 12 | + var dataObj =eval("(" + data + ")"); |
13 | updateTimePanel(dataObj.updateTime); | 13 | updateTimePanel(dataObj.updateTime); |
14 | updateDNSView(eval(dataObj.dnsMonitorInfo)); | 14 | updateDNSView(eval(dataObj.dnsMonitorInfo)); |
15 | $(function () { | 15 | $(function () { |
-
Please register or login to post a comment