【问题标题】:Open task in grunt-contrib-connect specifying the browser mode and document mode in appName parameter在 grunt-contrib-connect 中打开任务,在 appName 参数中指定浏览器模式和文档模式
【发布时间】:2014-11-05 06:55:59
【问题描述】:

我正在使用 nodeJS 来自动化我的 javascript web 应用程序开发,并且我始终必须确保该应用程序在所有浏览器中都能正常工作,包括 IE >=8,现在我在我的笔记本电脑上安装了 IE10,并且我正在使用 grunt-contrib-connect包以使用这样的连接任务在多个浏览器中打开应用程序

connect: {
      server: {
        options: {
          keepalive: true,
          port: 3001,
          hostname: 'localhost',
          base: '.',
          index: 'fab_1-3.app.htm',
          open: {
              target: 'http://localhost:3001/fab_1-3.app.htm',
              appName: 'iexplore'
          }
        }
      }
    }

现在,我希望它在 IE 中打开并指定文档模式和浏览器模式(使用 nodeJS/grunt),是否可以这样做?

提前致谢!

【问题讨论】:

    标签: node.js gruntjs grunt-contrib-connect


    【解决方案1】:

    使用以下流程:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-05-29
      • 2014-06-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-26
      • 2011-10-03
      相关资源
      最近更新 更多