【问题标题】:Laravel + VueJs not display in Internet ExplorerLaravel + VueJs 不显示在 Internet Explorer 中
【发布时间】:2019-04-12 08:23:17
【问题描述】:

我在我的项目中使用了 Laravel 和 Vuejs,它在所有浏览器中都运行良好,但在 Internet Explorer 中却是个问题。

【问题讨论】:

    标签: php laravel vue.js internet-explorer babel-polyfill


    【解决方案1】:

    我的问题就这样解决了(注意我用的是Laravel-Mix,我的Laravel版本是5.8)

    1. 安装

      npm install whatwg-fetch --save
      npm install --save babel-polyfill
      
      npm run dev
      
    2. 然后编辑您的app.js。 (默认在resources/assets/js/app.js

      // resources/assets/js/app.js
      
      import "babel-polyfill";
      import 'whatwg-fetch';
      
      require('./bootstrap');
      ...
      

    资源:laracasts

    【讨论】:

      猜你喜欢
      • 2011-11-29
      • 2013-03-20
      • 1970-01-01
      • 2011-03-04
      • 1970-01-01
      • 2020-06-08
      • 1970-01-01
      • 2015-10-28
      • 1970-01-01
      相关资源
      最近更新 更多