声名接口的时候需要加上 [propName: string]: Function; 这时候就不会报错了 转载于:https://www.cnblogs.com/hellolol/p/10039906.html