Showing
2 changed files
with
5 additions
and
2 deletions
@@ -50,4 +50,8 @@ $('.shops_id').click(function(){ | @@ -50,4 +50,8 @@ $('.shops_id').click(function(){ | ||
50 | alert(data.message); | 50 | alert(data.message); |
51 | } | 51 | } |
52 | }) | 52 | }) |
53 | -}); | ||
53 | +}); | ||
54 | +/*过滤特殊字符*/ | ||
55 | +$(document).on("keyup",":text",function(){ | ||
56 | + $(this).val($(this).val().replace(/\W/g,'')) | ||
57 | +}) |
@@ -24,7 +24,6 @@ module.exports = { | @@ -24,7 +24,6 @@ module.exports = { | ||
24 | }; | 24 | }; |
25 | }); | 25 | }); |
26 | } | 26 | } |
27 | - | ||
28 | //调用老系统的切换店铺的接口 | 27 | //调用老系统的切换店铺的接口 |
29 | authService.change(shopId, cookie, function(err, data) { | 28 | authService.change(shopId, cookie, function(err, data) { |
30 | if (err) { | 29 | if (err) { |
-
Please register or login to post a comment