add bing search

pull/375/head
jingjingxyk 2 years ago
parent 2052fdd522
commit 0299ecff1a

@ -6,6 +6,7 @@ let goToSearchPronounce = (word) => {
let search_engine_name = "gotToGoogleSearch";
// search_engine_name='gotToYouDaoSearch'
// search_engine_name = "goToBingDictSearch";
//search_engine_name = "goToBingSearch";
search_engine_name = "gotToYouDaoSearch";
let tab = "current_tab";

@ -9,7 +9,10 @@ let gotToYouDaoSearch = (word) => {
};
let goToBingDictSearch = (word) => {
return `https://cn.bing.com/dict/search?q=${word}`;
return `https://cn.bing.com/dict/${word}`;
};
let goToBingSearch = (word) => {
return `https://cn.bing.com/search?q=how%20to%20pronounce%20${word}`;
};
let goToBaiduDictSearch = (word) => {
return ` https://dict.baidu.com/s?wd=${word}`;
@ -31,5 +34,6 @@ export {
gotToYouDaoSearch,
gotToGoogleSearch,
goToBingDictSearch,
goToBingSearch,
goToBaiduDictSearch,
};

Loading…
Cancel
Save