Commit e73a5041 by 肖康

搜索限制空字符串

parent 71f0eaf6
Showing with 1 additions and 1 deletions
...@@ -63,7 +63,7 @@ define('mallUi', ['tool', 'liexin_pop'], function (require, exports, module) { ...@@ -63,7 +63,7 @@ define('mallUi', ['tool', 'liexin_pop'], function (require, exports, module) {
//搜索 //搜索
$(".mallsearchbtnx").click(function () { $(".mallsearchbtnx").click(function () {
var val_ = $(".mallsearchvalx").val(); var val_ = $(".mallsearchvalx").val().replace(/^\s+/, "").replace(/\s+$/, "");
if (!val_) { if (!val_) {
liexin_pop.Tip({ title: "ENTER CANNOT BE EMPTY" }) liexin_pop.Tip({ title: "ENTER CANNOT BE EMPTY" })
return return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment