1 if (key == null || key == "") { 2 layer.tips('流程标识key不能为空', $('#search_input'), { 3 tips: [3, '#5FB878'] 4 }); 5 return; 6 }