问题描述: TS2564: Property 'setSearchVal' has no initializer and is not definitely assigned in the constructor. 解决方法:修改tsconfig.json,compilerOptions下面加上"strictPropertyInitialization": false