Angular JSdom渲染器帮助在服务器端呈现有角度的页面。安装npm install angular-jsdom-renderer用法// render using an interval poll selector var renderer = require ( 'angular-jsdom-renderer' ) ; renderer . render ( { t/* url to retrieve the html from */ turl : 'http://localhost:7559/' , t/* poll this selector until a match is found */ tpollSelector : 'body[data-content-loaded=true]' , t t/* how often to poll the give