<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          SmartTruncation截取容器內(nèi)部的字符串

          聯(lián)合創(chuàng)作 · 2023-10-02 17:01

          SmartTruncation 可自動根據(jù)容器的大小變化時,對容器內(nèi)部的字符串進行截取顯示,并可保留一些固定的內(nèi)容,例如文件擴展名之類的。

          示例代碼:

          $('.text-2 li').smartTruncation({
            "truncateCenter" : true // "Hello World" -> "hel..rld"
          });
          $('.files li').smartTruncation({
            "protectExtensions" : true // "myimagefile.jpg" -> "myimagef...jpg"
          });

           

          瀏覽 18
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  深爱激情五月天网 | 青娱乐性爱视频 | 青青草免费视 | 国产特级AAAAAA大片 | 99亚洲精品 |