ngStomp 对承诺 安装 通过npm安装: npm install --save ng-stomp 将独立版本(包括依赖项)添加到HTML文件 < script src =" node_modules/ng-stomp/dist/ng-stomp.standalone.min.js " > </ script > 或分别添加SockJS + STOMP +(最小化)Stompie: < script src =" node_modules/sockjs/sockjs.min.js " > </ script > < script