Title, for example, a link I want to visit is http://www. Xxx.com?type=class, in the product perspective, only needs to class,group two types, the user's normal operation will not trigger other types, but when the user manually enter the URL, such as http://www. Xxx.com?type=class, in the background how to gracefully handle these non-existent type to meet the user experience and do not break the code elegance?
Reply content:
Title, for example, a link I want to visit is http://www. Xxx.com?type=class, in the product perspective, only needs to class,group two types, the user's normal operation will not trigger other types, but when the user manually enter the URL, such as http://www. Xxx.com?type=class, in the background how to gracefully handle these non-existent type to meet the user experience and do not break the code elegance?
仅供参考, 期待其他更高明的回复.
这应该是个筛选条件吧, 先判断筛选条件是否合法,不合法跳转到默认页.