Bootstrap Javascript不适用于Firefox和Safari IOS

Bootstrap Javascript dont Work in Firefox and Safari IOS

本文关键字:Safari IOS Firefox 适用于 Javascript 不适用 Bootstrap      更新时间:2023-09-26

我正在开发一个应用程序,您可以在这里看到:http://coster.herokuapp.com/

当我在iPhone上使用Firefox或Safari时,它无法正常工作。我使用的是Google Polymer 1.0、Bootstrap 3、Skeleton,当然还有jQuery。

这是我在Firefox 中收到的错误

是的,我已经修复了,但还不完全。。。

我修复了这个代码:

<script>
    jQuery.ajax({
        url: '/lib/bootstrap/dist/js/bootstrap.js',
        success: function (data) {
            (new Function('document', 'window', data))
                .call({}, wrap(document), wrap(window));
        },
        dataType: 'text'
    });
</script>

在Github上的这个isue中:https://github.com/Polymer/polymer/issues/625