(basic: any)
| 62 | } |
| 63 | |
| 64 | private parseBasic(basic: any) { |
| 65 | if (basic) { |
| 66 | let pronounce; |
| 67 | basic.explains.forEach((explain) => { |
| 68 | pronounce = this.isChinese ? explain : this.word; |
| 69 | this.addResult(explain, this.word, explain, pronounce); |
| 70 | }); |
| 71 | |
| 72 | if (basic.phonetic) { |
| 73 | // 获取音标,同时确定要发音的单词 |
| 74 | const phonetic: string = this.parsePhonetic(basic); |
| 75 | this.addResult( phonetic, "回车可听发音", "~" + pronounce, pronounce ); |
| 76 | } |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | private parseWeb(web: any) { |
| 81 | if (web) { |
no test coverage detected