new BrowserDictionaryLoader(dic_path)
BrowserDictionaryLoader inherits DictionaryLoader, using jQuery XHR for download
Parameters:
| Name | Type | Description |
|---|---|---|
dic_path |
string | Dictionary path |
Methods
-
loadArrayBuffer(url, callback)
-
Utility function to load gzipped dictionary
Parameters:
Name Type Description urlstring Dictionary URL
callbackBrowserDictionaryLoader~onLoad Callback function
Type Definitions
-
onLoad(err, buffer)
-
Callback
Parameters:
Name Type Description errObject Error object
bufferUint8Array Loaded buffer