Showing
1 changed file
with
1 additions
and
2 deletions
@@ -64,11 +64,10 @@ changeBackground(); | @@ -64,11 +64,10 @@ changeBackground(); | ||
64 | * 增加单条记录 | 64 | * 增加单条记录 |
65 | */ | 65 | */ |
66 | function addHistory(brandName) { | 66 | function addHistory(brandName) { |
67 | - | ||
68 | $.ajax({ | 67 | $.ajax({ |
69 | type: 'POST', | 68 | type: 'POST', |
70 | url: '/brands/addBrandSearch', | 69 | url: '/brands/addBrandSearch', |
71 | - data: 'brandName=' + brandName, | 70 | + data: 'brandName=' + encodeURIComponent(brandName), |
72 | success: function(data) { | 71 | success: function(data) { |
73 | }, | 72 | }, |
74 | error: function() { | 73 | error: function() { |
-
Please register or login to post a comment