Skip to content

Spiderpowa/TJDict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

每一個字典都放在 app/js/engines 裡面,要投稿字典請到這裡新增檔案,範例如下:

TJDict.engines.push(object);

Options

title: string
字典的標題
範例:title: "句酷雙語例句"
url: function(query)
必須回傳網頁的查詢網址字串
範例:url: function(q){return "http://www.jukuu.com/search.php?q=" + q}
resault: function(data)
必須回傳整理過的 HTML 字串
參數 data 是透過 url 回傳的內文的 body 字串

Releases

No releases published

Packages

No packages published