モードにすると、次のエラーがIE9
発生しIE7
ます。小さなカウントスクリプトの使用:
SCRIPT1028:予期される識別子、文字列、または数値
コード
$.fn.countTo.defaults = {
from: 0, // the number the element should start at
to: 100, // the number the element should end at
speed: 1000, // how long it should take to count between the target numbers
refreshInterval: 100, // how often the element should be updated
decimals: 2, // the number of decimal places to show
onUpdate: null, // callback method for every time the element is updated,
onComplete: null, // callback method for when the element finishes updating
};
185行目は最後の中括弧とセミコロンです
これを機能させるために必要ですIE7
が、このエラーはスクリプトを壊しています。