我有这段代码在 IE8 上不起作用......谷歌搜索我找不到解决方案......
你知道我怎样才能让它在 IE8 上也能工作吗?
这是简单的代码(桌面、平板电脑和移动设备是带有媒体查询的字符串变量......):
enquire.register(desktop, {
match: function () {
animate(a, b);
}
}).register(tablet, {
match: function () {
animate(a, b);
}
}).register(mobile, {
match: function () {
animate(a, b);
}
});
function animate(a, b) { ... };