LoginSignup
0
0

More than 3 years have passed since last update.

plunkerでvue その44

Last updated at Posted at 2019-12-22

概要

plunkerでvueやってみた。
俺のvueがie11で、動かない。

SCRIPT1002: 構文エラーです。

ie11は、アローが無い。

    axios.get("cart.php").then(response => (this.shop = response.data))
    var self = this
    axios.get("cart.php").then(function(response) {
       self.shop = response.data
    })

SCRIPT1003: ':' がありません。

ie11は、省略を、許さない。

    computed: {
        total() {
            var total = 0;
            for (var i = 0; i < this.items.length; i++)
            {
                total += this.items[i].price;
            }
            return total;
        }
    },
    computed: {
        total: function() {
            var total = 0;
            for (var i = 0; i < this.items.length; i++)
            {
                total += this.items[i].price;
            }
            return total;
        }
    },

SCRIPT5009: 'Promise' は定義されていません。

ie11は、以下を追加。

<script src="https://www.promisejs.org/polyfills/promise-6.1.0.min.js"></script>

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0