You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
564 B
25 lines
564 B
let goToGoogleSearch = (word) => {
|
|
word = word.replace(/\s/, "+");
|
|
return `https://www.google.com/search?q=how+to+pronounce+${word}`;
|
|
};
|
|
|
|
let goToYouDaoSearch = (word) => {
|
|
word = word.replace(/\s/, "+");
|
|
return `https://www.youdao.com/result?word=${word}&lang=en`;
|
|
};
|
|
|
|
let goToBingDictSearch = (word) => {
|
|
return `https://cn.bing.com/dict/${word}`;
|
|
};
|
|
let goToBingSearch = (word) => {
|
|
return `https://cn.bing.com/search?q=how%20to%20pronounce%20${word}`;
|
|
};
|
|
|
|
|
|
export {
|
|
goToYouDaoSearch,
|
|
goToGoogleSearch,
|
|
goToBingDictSearch,
|
|
goToBingSearch
|
|
};
|