if(!q || q === '*') why wildcard use as a string here?

前端 未结 0 1826
我寻月下人不归
我寻月下人不归 2021-01-28 11:41
search(q: string): Observable {
if(!q || q === \'*\') {
  q = \'\';
} else {
  q = q.toLowerCase();
}

In if condition, why wildcard use as a

相关标签:
回答
  • 消灭零回复
提交回复
热议问题