I have some trouble with IE11 and a static javascript class I wrote.
The error I get is:
SCRIPT1002: Syntax error
rgmui.box.js (6,1)
Which points to:
// ===========================================
// RGMUI BOX
// Static class
class RgMuiBox {
^
So I'm guessing I'm defining this class in the wrong way? What's the correct way of doing this?
I found a post on SO that seems to point out that the issue is ES5 vs ES6 - and I figure IE11 doesn't support ES6?
Just to be complete, this is what I have (simplified):
class RgMuiBox {
static method1() {
// .. code ..
}
}
Thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…