SyntaxError: let is a reserved identifier on firefox

后端 未结 1 1400
[愿得一人]
[愿得一人] 2021-01-27 01:58

I am using those code below

\'use strict\';

jQuery(document).ready(function($) {
    function CMB2ConditionalsInit(context) {
        if(typeof context === \'un         


        
相关标签:
1条回答
  • 2021-01-27 02:26

    As you can see the let keyword isn't supported on FF yet: https://kangax.github.io/compat-table/es6/

    You will need to change it to var, or transpile your code with babel

    0 讨论(0)
提交回复
热议问题