https://singtown.com/learn/50240/ 通过if判断就可以了。