为什么transform 方法返回值是any,我们的项目会报错。你演示的就不会
Error:(27, 15) Angular: Identifier 'name' is not defined. 'T' does not contain such a member
Error:(28, 15) Angular: Identifier 'price' is not defined. 'T' does not contain such a member
Error:(30, 32) Angular: Identifier 'rating' is not defined. 'T' does not contain such a member