Methods
binarySearch(items, fGetValue) → {Object}
- Description:
二元搜索法(Binary Search),通過fGetValue(index)取值,求最靠近0但小於0的值,並回傳值與所在的index與所查得的數據items[index]
- Source:
Parameters:
Name | Type | Description |
---|---|---|
items |
Array | 輸入欲搜尋陣列 |
fGetValue |
function | 輸入取值函數,傳入index |
Returns:
回傳物件index,最靠近0但小於0的值、所在的index與所查得的數據items[index]
- Type
- Object
convertColor(color) → {String}
- Description:
轉換vuetify color為hex顏色字串
- Source:
Parameters:
Name | Type | Description |
---|---|---|
color |
String | 輸入vuetify顏色字串 |
Returns:
hex 回傳hex顏色字串
- Type
- String