Expected ')' JS error in IE after assigning a value to a function argument

后端 未结 2 799
鱼传尺愫
鱼传尺愫 2021-02-07 11:49

I wrote the below code in my JS file and IE is giving error for the argument \'searchMap\' when I am assigning value for it in the function.

map         


        
2条回答
  •  忘了有多久
    2021-02-07 12:14

    var searchMap = false;
    mapping: function(mappingObj, searchMap) {
        // code
    }
    
    mapping(mappingObj, searchMap);
    

提交回复
热议问题