【问题标题】:Why Google Translate hangs my Zebra Datapicker为什么 Google 翻译会挂起我的 Zebra Datepicker
【发布时间】:2014-09-30 00:13:29
【问题描述】:
<script type="text/javascript">
       $(document).ready(function() {
        $('#checkin').Zebra_DatePicker({
            direction: true,
            show_icon:false,
            format: 'M d, Y',
            show_select_today:false,
         pair: $('#checkout')
        });

        $('#checkout').Zebra_DatePicker({
                direction: 1,
                show_icon:false,
                format: 'M d, Y'
            });
         });         
    </script>


    <script>
    $(function() {
    $("#checkin").Zebra_datepicker();
    $('.Zebra_Datepicker dp_visible').addClass('notranslate');
    });
</script>

我在我的网站上使用 Zebra Datepicker,但是当我在我的网站上使用 Google Translate API 时,Google Translate 会挂起我的 Datepicker 并继续翻译需要帮助.... 我正在尝试使用上述函数向 ui-datepicker 添加没有翻译类但没有运气

【问题讨论】:

    标签: javascript jquery datepicker google-translate


    【解决方案1】:
    $(function() {
        $('.Zebra_DatePicker').addClass('notranslate');
    });
    

    试试这个!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-04-06
      • 2021-06-09
      • 2012-02-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-02
      相关资源
      最近更新 更多