简体   繁体   中英

IE11 - Throwing error in console , while it is working fine in chrome

Below is my code snippet , where I am getting error like , in IE11

SCRIPT5007: Unable to get property 'init' of undefined or null reference

SCRIPT1003: Expected ':'

But it is working fine in Chrome and other browser like Edge , kindly provide with some viable solution .

<script type="text/javascript">    
    $(function () {
        color.shades.init({
            url: {},
        });
    });
    </script>

Hi all thanks for your answer , but I was able to trace the issue , as I was using Shorthand function like ,

 ToggleEquipmentVisibility() {
              Code...... ;
                },

which IE11 does not support , so changing it to call back function , like

ToggleEquipmentVisibility : function() {
          Code...... ;
            },

Solved my issue :) for both the errors .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM