必须要用ctrl+F5组合键运行程序,不然会出现界面闪退的情况.
​​​https://jingyan.baidu.com/article/358570f695deeace4724fc24.html​