我在Chrome上面临着非常奇怪的问题,
在我的应用程序中,我将在其他窗口打印收据
Window.open();Window.print();
但是,如果用户忽略打开的窗口并再次单击“打印”按钮,那么我将得到以下错误。
第9行包含来自my.js的my.js打印函数。
1. Error: [$rootScope:inprog] $apply already in progress 2. http://errors.angularjs.org/1.2.16/$rootScope/inprog?p0=%24apply 3. at http://localhost:62344/external/angularJS/1.2.16/angular.js:78:12 4. at beginPhase (http://localhost:62344/external/angularJS/1.2.16/angular.js:12720:15) 5. at Scope.$apply (http://localhost:62344/external/angularJS/1.2.16/angular.js:12509:11) 6. at HTMLInputElement.<anonymous> (http://localhost:62344/external/angularJS/1.2.16/angular.js:18626:21) 7. at HTMLInputElement.jQuery.event.dispatch (http://localhost:62344/Scripts/jquery-1.8.2.js:3063:9) 8. at HTMLInputElement.elemData.handle.eventHandle (http://localhost:62344/Scripts/jquery-1.8.2.js:2681:46) 9. at Scope.$scope.print (http://localhost:62344/Scripts/app/my.js:5044:34) 10. at http://localhost:62344/external/angularJS/1.2.16/angular.js:10567:21 11. at http://localhost:62344/external/angularJS/1.2.16/angular.js:18627:17 12. at Scope.$eval (http://localhost:62344/external/angularJS/1.2.16/angular.js:12412:28)
在其他浏览器上,它可以正常工作。
有什么投入吗?
-Thanks,Yogesh
发布于 2014-07-22 06:51:16
https://stackoverflow.com/questions/23828289
复制相似问题