车把和Safari 9问题

时间:2016-08-24 06:50:51

标签: javascript safari coffeescript handlebars.js

.handlebar文件中的代码如下:

<div class='module-sequence-padding'></div>
<div class='module-sequence-footer clearfix'>
  <div class="module-sequence-footer-content">
    {{#if previous.show}}
      <a href="{{previous.url}}" role="button" class="pull-left" data-tooltip="right" data-html-tooltip-title="{{previous.tooltip}}" aria-describedby="msf{{instanceNumber}}-previous-desc">
        <i class="icon-mini-arrow-left"></i>{{#t 'previous'}}Previous{{/t}}
        <span id="msf{{instanceNumber}}-previous-desc" class="hidden" hidden>{{previous.tooltipText}}</span>
      </a>
    {{/if}}

    {{#if next.show}}
      <a href="{{next.url}}" role="button" class="pull-right bordered" data-tooltip="left" data-html-tooltip-title="{{next.tooltip}}" aria-describedby="msf{{instanceNumber}}-next-desc">
        {{#t 'next'}}Next{{/t}}<i class="icon-mini-arrow-right"></i>
        <span id="msf{{instanceNumber}}-next-desc" class="hidden" hidden>{{next.tooltipText}}</span>
      </a>
    {{/if}}
  </div>
</div>

以上代码显示在Chrome中,但不会显示在Safari上。

在Safari上,我收到的错误为RangeError: Invalid Date,代码如下:

  delivery = ajax({
    url: options.deliveryUrl,
    type: 'POST',
    global: false, # don't whine to the user if this fails
    headers: JSON_HEADERS,
    data: JSON.stringify({
      quiz_submission_events: eventSet.toJSON()
    })
  })

有人可以帮忙。

0 个答案:

没有答案