javascript - When js binds default values ​​to parameters, an error is reported under IE, showing that the identifier is missing)
世界只因有你
世界只因有你 2017-05-19 10:36:03
0
2
990

The code can run normally in Firefox and Google. It will report an error under IE.
The errors are all in the two function definitions.
The functions are as follows:

If =null and =true are removed here, it will run normally under IE.
iedeg The error message is SCRIPT1006: Missing ')'
I don't know why. People on Baidu said that there are extra commas in the array. .But I checked everything and there is no problem with what I wrote.
I also used jq and layui. I used regular expression to detect the extra commas in the array and found no extra commas. I feel it has nothing to do with the commas.
The problem lies in these two On the equal number, as long as it is removed, it can be used normally.
I hope God can enlighten me.

世界只因有你
世界只因有你

reply all(2)
伊谢尔伦

You use ES6 syntax to run on IE. Have you compiled it with babel?

Change it to ES5 writing:
function bf_append_status(name,live){

var live=live||true;

}

Same as above.

巴扎黑

Default parameter values

IE does not support it.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!