)" %}
</p>


<a name="Example"></a>
<h2 data-anchor="Example">示例</h2>
<div class="reference_examples">
    <div class="reference_example">
        <div class="title">
            <p>
                Datatables初始化：计算多少行被选中了
            </p>
        </div>
 <pre class="brush:js;toolbar:false">$(&#39;#myTable&#39;).DataTable( {
    buttons: [
        {
            extend: &#39;selected&#39;,
            text: &#39;Count selected rows&#39;
            action: function ( e, dt, butt