TypeError: Cannot read property 'replace' of undefined ----angular2 只要将 将 // encapsulation: ViewEncapsulation.None 注释掉就行