-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathdev.js
17 lines (14 loc) · 2.22 KB
/
dev.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* eslint-disable */
import React from 'react'
import ReactDOM from 'react-dom'
import components from './components'
function renderDetail() {
const { Detail } = components
const mock = {
type: 'explain',
response: {"word":"perform","pronunciation":"/pəˈfɔːm/","frequence":4,"rank":"CET4 TEM4","additionalPattern":"(\n performing,\n performed,\n \t\t\t\t\t\t\t\t\t\t\t\tperforms\n )","meanings":[{"explain":{"type":"V-T","typeDesc":"及物动词","engExplain":"When you <b>perform</b> a task or action, especially a complicated one, you do it. 做; 执行 (尤指复杂的任务或行动)"},"example":{"eng":" We're looking for people of all ages who have performed outstanding acts of bravery, kindness, or courage. ","ch":"我们正在寻找各个年龄的、曾有过无畏、善良或英勇之举的杰出人士。"}},{"explain":{"type":"V-T","typeDesc":"及物动词","engExplain":"If something <b>performs</b> a particular function, it has that function. 行使 (某种功能)"},"example":{"eng":" An engine has many parts, each performing a different function. ","ch":"一部发动机有很多部件,各自行使不同的功能。"}},{"explain":{"type":"V-T","typeDesc":"及物动词","engExplain":"If you <b>perform</b> a play, a piece of music, or a dance, you do it in front of an audience. 演出; 演奏"},"example":{"eng":" Gardiner has pursued relentlessly high standards in performing classical music. ","ch":"加德纳在演奏古典音乐方面始终不懈地追求高标准。"}},{"explain":{"type":"V-I","typeDesc":"不及物动词","engExplain":"If someone or something <b>performs well</b>, they work well or achieve a good result. If they <b>perform badly</b>, they work badly or achieve a poor result. 表现 (好/不好)"},"example":{"eng":" He had not performed well in his exams. ","ch":"过去考试他都考得不好。"}}]}
}
// const mock = {"type":"choices","response":{"choices":[{"words":["choice","option"],"wordType":"n."},{"words":["select","choose","elect"],"wordType":"vt."}]}}
ReactDOM.render(<Detail explain={mock} />, document.getElementById('main'))
}
renderDetail()