ABPCMS.Web/lib/jquery-countTo/readme.md

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

jQuery countTo Plugin
=====================
[jQuery countTo](https://github.com/mhuggins/jquery-countTo) is a
[jQuery](http://jquery.com) plugin that will count up (or down) to a target
number at a specified speed, rendered within an HTML DOM element.

Requirements:
-------------
[jQuery countTo](https://github.com/mhuggins/jquery-countTo) requires the
latest version of [jQuery](http://jquery.com).

Usage:
------
There are two main approaches to using this plugin: through data attributes on
DOM nodes, and through JS options explicitly passed to the `countTo` function.

These two methods can be mixed and matched as well.  Data attributes takes
precedence over JS options.

### Data Attributes

This approach allows you to define `data-*` attributes on whatever DOM element
will act as a container for your counter.  This is useful when you already know
the values at the time that you are constructing the DOM.

    <span class="timer" data-from="25" data-to="75"></span>
    
    <script type="text/javascript">
      $('.timer').countTo();
    </script>

A more detailed example that demonstrates all possible options being used is as
follows.

    <span class="timer" data-from="0" data-to="100"
          data-speed="5000" data-refresh-interval="50"></span>
    
    <script type="text/javascript">
      $('.timer').countTo();
    </script>

Refer to the **Options** section below for more info on the various options
available.

### JavaScript Options

This approach allows you to pass values to the `countTo` function.  This is
useful when you don't know the values at the time the DOM is being rendered.

    <span class="timer"></span>
    
    <script type="text/javascript">
      $('.timer').countTo({from: 0, to: 500});
    </script>

A more detailed example that demonstrates all possible options being used is as
follows.

    <span class="timer"></span>
    
后面还有 110 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。