【问题标题】:AngularJS $window.open on mobile deviceAngularJS $window.open 在移动设备上
【发布时间】:2016-10-25 06:55:38
【问题描述】:

我有一个 AngularJS 应用程序,我正在使用 $window.open() 在浏览器中打开 PDF。这在计算机上运行良好,但在移动设备上不起作用。 使用 Chrome,我在“移动模式”下打开了我的应用程序,我收到了 javascript 错误“$window is not defined”。我怎样才能让它在移动设备上工作?

【问题讨论】:

  • 试试window.open()
  • 你是如何注入$window的?

标签: angularjs


【解决方案1】:

正如 murli2308 所说,window.open() 是解决方案。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-12-07
    • 2017-03-18
    • 2015-10-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多