2008-05-26 17:03 jQuery - dotString 1.0
Prototype 加強了 JavaScript 內建的 String 物件的能力,雖然這做法並不是 jQuery 的理念,不過畢竟有些方法是很方便使用的,因此就有網友把它也整合成 jQuery 的 otString 套件了。
dotString 實作了 Prototype 1.6.0.2 中的大部份 String 的函式,讓我們可以快速的轉換原先在 Prototype 中的各種方法來用在 jQuery 中。
套件名稱:dotString
套件版本:1.0
作者網站:http://www.stilldesigning.com/dotstring/
套件網址:http://plugins.jquery.com/project/dotString
發佈日期:2008-05-12
檔案大小:15.3 KB
檔案下載:jquery.string.1.0.js
參數說明:
函式:
使用範例:
範例瀏覽:
http://abgne.myweb.hinet.net/jQuery/plugins/0019/0019.html
http://blog.xuite.net/abgne/diary1/14617659
附註:
為了維持 jQuery 的核心理念,因此使用的函式後,除了 blank() 會回傳 Boolean 及 evalJSON() 會回傳 JSON 物件之外,其餘的都是會回傳 string。$.string 會回傳另一個 $.string 物件,要取得值時要使用 str 屬性。





