Element UI tree 组件 获取所选最高一级的节点

Element UI tree 组件 获取所选最高一级的节点,第1张

最近有了新的需求,要求可以展示一棵机构树,然后可以选择某些节点。所选节点如果它和它的兄弟节点都被选中,那么所选结果就是它们的父节点。

如下例子:

选择三级1-1-1、三级1-1-2(或二级1-1),所得结果为一级1;选择二级2-1、二级2-2,所得结果一级2

项目使用Element UI框架,查找了tree组件对外接口,没有提供,然后自己结合tree组件的方法实现一下

在点击某个节点,选择状态完成更新后的回调函数中,判断当前点击节点的父节点是否选中,若选中,就把该父节点下的所有子节点从结果数组中移除,把当前节点加入结果数组,然后判断该父节点的父节点是否选中,循环上述步骤直到它们的根节点或状态为未选中;若该父节点未选中,检查当前节点状态是否为选中,选中,则加入结果数组,否则就认为是当前点击操作取消了之前的选中状态,那么就需要在结果数组中删除当前点击项,考虑到之前可能是点击节点的父节点被选中状态,所以需要针对这个情况,需要在结果数组中删除父节点项,加入除当前点击项外的兄弟节点项(因为结果数组中存储的是最高一层的所选节点,所以不需要处理点击项的子节点)

tree组件中

使用方法

展示时删除某一选中项

1、配置CDP(CiscoDiscoveryProtocol):CDP是一种思科专有的协议,用于在网络中发现和管理其他思科设备。CDP默认启用于所有思科设备,并且使用VLAN1002进行传输。

2、配置VTP(VLANTrunkingProtocol):VTP是一种用于在网络中配置和管理VLAN的协议,它使用VLAN1002来传输VTP信息。

3、配置PVST+(Per-VLANSpanningTreePlus):PVST+是一种思科专有的协议,用于在网络中实现VLAN间的冗余和故障恢复,它使用VLAN1002来传输PVST+信息。

ace-tree的opened、closed、selected方法中包含2个回调参数,还有一个参数是data,就是你选择的节点数据,分别在opened、closed、selected中获取数据就可以实现点击的节点数据了。

$('#tree1')ace_tree({

dataSource: treeDataSource,

multiSelect: false,//是否多选

loadingHTML: '<div class="tree-loading"><i class="icon-refresh icon-spin blue"></i></div>',

'open-icon': 'icon-minus',

'close-icon': 'icon-plus',

'selectable': true,//是否可以选择

//'selected-icon': 'icon-ok',

// 'unselected-icon': 'icon-remove'

})on('loaded', function (evt, data) {

})on('opened', function (evt, data) {

consolelog("selected items: ", dataname);

})on('closed', function (evt, data) {

consolelog("selected items: ", dataname);

})on('selected', function (evt, data) {

consolelog("selected items: ", datainfo[0]name);

});

tree

[tri:]

n

(1) 树, 木料, 树状物

vt

(2) 赶上树

n

(3) [计] 显示驱动器的子目录结构

vi

(4) 爬上树, 逃上树

高级汉语词典

[基本词义]

tree

生活需要

(1) 树

[基本词义]

tree

生活需要

(1) 树

[基本词义]

tree

生活需要

(1) 树木,木架

[基本词义]

tree

生活需要

(1) 树

[基本词义]

tree

生活需要

(1) 树

[基本词义]

tree

生活需要

(1) 环护林带

[基本词义]

tree

作业;运输

(1) 树

[基本词义]

tree

生活需要

(1) 树木

[基本词义]

tree

生活需要

(1) 树

[基本词义]

tree

生活需要

(1) 树状物

英汉双解计算机词典

[基本词义]

tree

(语法)树

(1) 1 A hierarchical net; a multilevel data structure It consists of a number of entities in “from top down” relationships and a specification of the orders in which they can be accessed The entity of highest position (the entity that must be accessed first in order to access any other entity in the structure) is the root (also origin)The other entities of the structure are owners and members; they are connected for access purposes by pointers which may also be termed links, connectors, or relationships

一种层次网或一种多级数据结构,它由一系列具有“自顶向下”关系的实体及其被存取的 顺序的说明组成。最顶端的实体(为了存取结构中任何其它实体而必须首先存取的实体)叫作 根(也叫原点),结构的其它实体叫作主体和成员,它们以存取为目标通过指针连接起来。这些 指针也叫链路、连接器或关系。参阅net, access path, tree diagram。 2 A term applied to hierarchical structure of entities; for example, to a company organization chart or a genealogy | 用在层次型的实体结构中的一个术语,例如,一个公司的机构图或一个家族的关系图。

现代英汉综合大辞典

[基本词义]

tree

[tri:]

n

(1) 树, 树木; 乔木; 树状大灌木

(2) 木料; 木制构件; 用于某种特殊目的的一块木头

(3) 树状物

(4) 世系图

(5) (=Christmas tree)圣诞树

(6) 数树(形);化树状晶体

(7) 电树形网络; 轴; 支柱; 纵梁; 光柱

(8) [古]绞刑架; 绞台; (钉耶稣的)十字架

(9) 鞋楦

tree and shrubs

乔木和灌木

a family tree

家传世系图

a clothes tree

衣帽架

a boot tree

靴楦

[词性变化]

tree

[tri:]

vt

(1) 驱使上树

(2) [口]使处于困境; 穷追

(3) 用鞋楦楦鞋

The dog treed the cat

狗赶猫上树。

[词性变化]

tree

[tri:]

n

(1) 树径

treeless

[`tri:lIs]

adj

(1) 无树木的

treelike

adj

[继承用法]

tree-age

n

(1) 树龄

treedozer

n

(1) 伐木机, 除根机, 推树机

tree-fish

n

(1) 梅花鲈

tree-guard

n

(1) 树木护栏, 树木的保护装置

treelined

adj

(1) 沿途有树的

treering

n

(1) (树木)年轮

treescape

[`tri:skeIp]

n

(1) 多树的风景, 树景

tree-system

n

(1) 树枝式系统[配电方式]

treetop

n

(1) 树顶; [pl]树顶高度(线)

tree-walk

vt

(1) 攀树

[习惯用语]

A tree is known by its fruit

(1) [谚]观其果而知其树; 观其行而知其人。

As a tree falls, so shall it lie

(1) [谚]树倒在何处, 就躺在何处(指事物有其必然的规律)。(来自《圣经》)

As the tree, so the fruit

(1) [谚]有其树必有其果; 什么树结什么果。

bark up the wrong tree

(1) (猎狗)向没有猎物的树乱吠; 精力花在不该花的地方; 攻击错了目标, 错怪了人

gallows tree

(1) 绞刑架, 绞台

ball tree

(1) (放在大厅入口处的)衣帽架

in the dry [green] tree

(1) 在老年[年富力强]时期; 处于劣 [佳] 境

pull up trees

(1) [口][通常用于否定句]作出伟大功绩, 取得重大成就

shake the pagoda tree

(1) (在印度)暴发致富

shake the plum tree

(1) [美]政党在选举胜利后把官职分给党员; 授予官职作为对政党效劳的报酬

the tree of life

(1) 生命树(据说长在伊甸园中, 食其果能长生不老)(来自《圣经》)

the tree of the knowledge of good and evil

(1) 使人分别善恶的智慧之树

the whole tree or not a cherry on it

(1) 或是全部要或是什么也不要; 不能全得, 宁可全失

Tyburn tree

(1) [俚]绞刑架(Tyburn为昔日伦敦死刑场)

up a tree

(1) 在困难的处境中; 进退维谷

You can't judge a tree by its bark

(1) [谚]不要根据树皮判断树木; 不能以貌取人。

[特殊用法]

Abraham's tree

(1) 气辐辏状卷云

acicular-leaved tree

(1) 针叶树

alligator [Sweet gum] tree

(1) 胶皮糖香树

amber tree

(1) 琥珀树; 非洲花子属植物

amur cork tree

(1) 黄蘖; [俗]黄波罗AND /

OR tree

(1) “与/或”树

anise tree

(1) 八角(大茴香)

Arabic gum tree

(1) 阿拉伯胶树

ash tree

(1) 树; 灰树(一种白蜡树)

assam rubber tree

(1) 印度橡胶树

athel tree

(1) 无叶柽柳

Australian broad leared tea tree

(1) 澳洲阔叶茶树; 绿花白千层

bald tree

(1) 树叶落光的树

balsam tree

(1) 秘鲁香胶木

bay tree

(1) 月桂树

bay-rum tree

(1) 野月桂

bead tree

(1) 苦楝树(海红豆)

bearing tree

(1) 成年树, 结果树

big tree

(1) 巨杉(世界爷)

binary tree

(1) 计二进制树形网络

block-cutpoint tree

(1) 块割点树

border [edge, marginal] tree

(1) 林缘树

Borneo-camphortree

(1) 龙脑香树

boundary tree

(1) 境界树

box tree

(1) 黄杨属

bread-fruit tree

(1) 面包果树

bronchial tree

(1) 解支气管树

broad-leaved tree

(1) 阔叶树

brood tree

(1) 虫害木, 树

bushy tree

(1) 杀势障木, 矮树

butter tree

(1) 牛油树

caoutchouc tree

(1) 橡胶树

carnauba tree

(1) 巴西棕榈

chestnut tree

(1) 栗树

China tree

(1) 楝树(苦楝)

Chinese dove tree

(1) 珙桐

Chinese tallow tree

(1) 乌桕

chocolate tree

(1) 巧克力树

Christmas tree

(1) 圣诞树

christmas tree

(1) 采油树

cinnamon tree

(1) 桂皮

clothes tree

(1) 柱式衣架, 衣帽架

clove tree

(1) 丁(子)香树

cocoa tree

(1) 可可树

coding tree

(1) 计编码树

coffee tree

(1) 咖啡树

cola tree

(1) 苏丹可乐果; 红可粒

combiner tree

(1) 组合器[组]

cone bearing tree

(1) 针叶树

coniferous tree

(1) 针叶树

cotton tree

(1) 木棉

cotton gum tree

(1) 胶皮糖香树

crop tree

(1) 主伐木

cucumber tree

(1) 锐叶木兰

dead and dying tree

(1) 枯死木

dead standing tree

(1) 枯立木

deciduous tree

(1) 落叶树

decision tree

(1) 决策图表, 分层次决策

derivation tree

(1) 计导出树, 派生树

dicotyledonous tree

(1) 双子叶树

dominant tree

(1) 优势木

doted tree

(1) 腐朽树

dragon tree

(1) 龙血树

dwarf tree

(1) 矮乔木

dwarfing tree

(1) 矮生树

dying tree

(1) 垂死木

ear-leaved umbrella tree

(1) 耳叶木兰树

East Indian coral tree

(1) 剌桐

elite tree

(1) 原树

endlessly rooted tree

(1) 无端有根树

established tree

(1) 驯化树

evergreen tree

(1) 常绿树

Family T-

(1) 家系图, 家谱, 谱族

family tree

(1) 系统树

fascicular tree

(1) 丛生树

fast-growing tree

(1) 速生树

fault tree

(1) 故障树

felled tree

(1) 采伐木, 伐倒木

fever tree

(1) 金鸡纳树

fig tree

(1) 无花果

fir tree

(1) 枞树, 杉树

fire protection tree

(1) 防火树

five-leaved chaste tree

(1) 山牡荆

flame tree

(1) 凤凰木

fodder tree

(1) 饲料树木

foliage tree

(1) 阔叶树

formed tree

(1) 乔木

gamboge tree

(1) 藤黄树

genealogical tree

(1) 系统树

grammar tree

(1) 语法树图

guave tree

(1) 番石榴

Gum tree

(1) 北美枫香树

gutta-percha tree

(1) 杜仲树

halzlenul [hazel] tree

(1) 欧洲榛

ham tree

(1) 烤火腿架

hardwood tree

(1) 阔叶树

head tree

(1) 畜头检验架

heart-wood tree

(1) 心材树

Hollong gurjun oil tree

(1) 羯布罗香树

horse tree

(1) 锯木架; (马具)吊杆

horseradish tree

(1) 辣木

identity tree

(1) 幺树

identity rooted tree

(1) 幺有根树

imperfect heartwood tree

(1) 熟材树

Indian caoutchouc tree

(1) 印度橡胶树

Indian Kino tree

(1) 印度吉纳树

intermediate tree

(1) 间型木, 中庸木

intolerant tree

(1) 阳(性)树

isolated tree

(1) 孤立树

jack tree

(1) 波罗蜜

Japan wood-oil tree

(1) 罂子桐

Judas tree

(1) 南欧紫荆

kapok tree

(1) 吉贝树

katsura tree

(1) 连香树

kola tree

(1) 苏丹可乐果

lead tree

(1) 树枝状铅, 铅树

leaf tree

(1) 阔叶树

leave tree

(1) 保留树

life tree

(1) 生命树

light-demanding tree

(1) 阳性树

lime tree

(1) 椴树

liver tree

(1) 肝凉却架

living tree

(1) 立木, 活树

locust tree

(1) 刺槐; 洋槐

logical tree

(1) 计逻辑分析图

long leaf tree

(1) 阔叶树

looking glass tree

(1) 银叶树

lopping tree

(1) 截枝树

lopsided tree

(1) 偏冠树, 偏斜树

maiden hair tree

(1) 银杏, 白果树

major forest tree

(1) 主林木

mangosteen tree

(1) 倒捻子

mean sample tree

(1) 中央木

melon tree

(1) 番木瓜

minimum spanning tree

(1) 最小生成树

minus tree

(1) 负型树木(形质和材质不良且易遭病虫袭击)

miscellaneous tree

(1) 杂木

model tree

(1) 标准木, 样木

monkey face tree

(1) 粗糠柴

monocotyledonous tree

(1) 单子叶树

needle -leaved tree

(1) 针叶树

nodding tree

(1) 倾斜树, 下垂树

noisy deformed tree

(1) 噪声畸变树

olive tree

(1) 齐墩果, 油橄榄

oriental plane tree

(1) 法国梧桐

oriented trees

(1) 有向树(形), 定向树形

ornamental tree

(1) 观赏树木

overlay tree

(1) 自树形重迭

oxygen tree

(1) 氧树

pagada tree

(1) 鸡蛋花

pagoda tree

(1) 槐树

parse tree

(1) 剖析树

pea tree

(1) 植锦鸡儿

pearl tree

(1) 茧子花

peepul tree

(1) 菩提树

peruvian bark tree

(1) 金鸡纳树

pimenta tree

(1) 众香树

plane tree

(1) 悬铃木; 法国梧桐

planted tree

(1) 植树

plus tree

(1) 优势木, 正型 树

proper tree

(1) 正常树

pygmy tree

(1) 矮树, 高山矮曲树

raisin tree

(1) 枳(拐枣)

red cassia tree

(1) 红桂木

refutation tree

(1) 反驳树

relational tree

(1) 关系树

relay tree

(1) 继电树形电路, 接点树形电路

residual tree

(1) 保残木

respiratory trees

(1) 解(无脊椎动物)呼吸树

retarded tree

(1) 被压木

roof tree

(1) 栋梁

rooted tree

(1) 有根树

rubber tree

(1) 橡胶树

sacred bark tree

(1) 药鼠李

sample tree

(1) 取样树

sap-wood tree

(1) 边材树

sawn tree

(1) 成材

scattered trees

(1) 散生树

search tree

(1) 搜索树

searching game tree

(1) 博奕树的搜索

seed tree

(1) 母树, 采种树

semantic tree

(1) 语义树

shade-bearing [shade-enduring] tree

(1) 阴性树类

sade-tolerating trees

(1) 耐阴树类

shoe tree

(1) 鞋楦

Siberian pea tree

(1) 蒙古锦鸡儿

signed tree

(1) 指定符号的树

silk cotton tree

(1) 丝绵树

silver tree

(1) 银树

siris tree

(1) 阔叶合欢

soap nut tree

(1) 无患子

sorrel tree

(1) 酸木

special [preserved, protected] tree

(1) 保护树

spindle tree

(1) 卫矛属

sprouting tree

(1) 萌蘖树

standard tree

(1) 标准乔木

standing tree

(1) 立木

static tree

(1) 摄静电斑痕stock 种株, 母本树; 母本园

strawberry tree

(1) 杨梅; 莓实树

street tree

(1) 行道树

strike tree

(1) 采矿井口翻矸台

structure tree

(1) 结构树

sugar maple tree

(1) 糖槭树

summer tree

(1) 大梁

sweet gum tree

(1) 胶皮糖香树

syntactic [syntax] tree

(1) 语法树

systematic tree

(1) 系统树

temple tree

(1) 鸡蛋花

thriving tree

(1) 主伐林

tolu tree

(1) 吐鲁胶树

totara tree

(1) 桃拓罗汉松

trap tree

(1) 诱虫树

tulip tree

(1) 鹅掌楸

tung oil tree

(1) 油桐

undesirable tree

(1) 杂木

vinegar tree

(1) 酸果漆树

wild tree

(1) 野生树苗

Wild coffee tree

(1) 野咖啡树

winged spindle tree

(1) 卫矛

wolf tree

(1) 杀势障木; 短干木; 老狼木

wood oil tree

(1) 木油树(五爪桐)

现代英汉词典

[基本词义]

tree

[tri:]

n

(1) 树,树木

(2) 树状灌木

(3) 树状物;衣帽架;鞋架

(4) 世系图;家谱 (= family tree)

表示时间的介词称为时间介词。表示时间的介词有:at, on, in, before, after等。

一、at, on和in

① at 表示:(在(某时刻、时间、阶段),在……岁时)

My cousin joined the army at fifteen

我表哥十五岁参的军。

② on 表示:在(某日),在周末,在……节日

He was born on the 15th of August in 1769

他出生于1769年8月15日。

③ in 表示:在……事后,在……期间,在……年/月

She went to America in 2000

她2000年去了美国。

at, on 和in 作时间介词的比较:

① at 表示具体时间点。

② on 后可以跟表日期、星期、节日的词,还可以指具体某一天的早、中、晚。

③ in 泛指一天的早、中、晚,还可以表示一段时间,如:周、年、月、季节等。

二、before和after

① before 表示:在……之前 before eight o’ clock 八点之前

Spring comes before summer

夏天之前是春天。

② after 表示:表示……之后 after lunch 午饭之后

Come to my office after school

放学后请来我办公室。

表示做某事的方法、手段的介词有by, with, in, at, on。

一、by

by表示:用,以,靠,通过……方式。by表示手段时后接动作或制作方式。“by + 交通工具”表示交通方式。

by bike 骑车 by bus 坐公车 by taxi 搭出租

by train 坐火车 by ship 乘船 by air 坐飞机

Linda usually goes to work by subway

琳达通常做地铁上班。

She makes a living by teaching

她考教书谋生。

二、with

with 表示:用,以。with表示手段时,后接工具、材料或具体内容。

write with a pen 用钢笔写

eat with knife and fork 用刀叉吃

see with one’s eyes 用眼睛看

I killed the fly with a swatter

我用苍蝇拍打死那只苍蝇。

She cut the cake with a knife

她用刀切开了蛋糕。

三、in

in 表示:用,以。in表示用某种方式,如:颜色、笔墨、语言、声音、服饰等。

speak in English 用英语说

talk in a high voice 高声说话

I wrote a letter in ink

我用钢笔写了一封信。

Try to express yourself in English

试着用英语表达一下。

表示空间的介词有:at, in, on, over, above, under, below 等表示静态位置的介词和from, to, up, down, through, across 等表示动态方向的介词。

一、at, on 和 in

① at 表示:(地点、位置)在……

② on 表示:(位置)在……上面

③ in 表示:(地点、位置或空间)在……里,在……中,在……上

Her fans have arrived at the airport

她的影迷已经到达了机场。

Look at the picture at the top of the page

请看以下这一项上面的。

Is my pen on the desk or in the desk

我的钢笔是在桌子上还是在抽屉里呢?

Some kids are playing in the yard and others are playing in the room

有些孩子在院子里玩,其他则在房间里玩。

at,on 和 in 作空间介词的比较

① at用于表示一个较小的场合,这个地点被当作一个点来看待。

② on 表示在某一平面或线上,强调与某物体有接触。

③ in 表示在较大的地方,在某立体空间或平面范围之内。

二、about 和 around

① over 二者都表示:在……周围/各处,围绕。但

② above about强调无方向。

We walked about in the town

我们在城里到处游逛。

Dudu is running around the fence

嘟嘟在绕着篱笆跑。

Let’s plant trees around the house

让我们在房子周围栽上树。

三、over 和 above

① under 表示:在……正上方,越过

② above 表示:在……上方

I saw a wood bridge over the river

我看见河上有座木桥。

Look! Some birds are flying above the clouds

看!一些鸟儿在云朵上飞翔。

over和above作空间介词的比较

① over强调在某人或某物的正上方,而且两物体表面没有接触。

② above 强调位置上某物体的上方,并不一定是正上方,而且两物体表面也没有接触。

四、under 和 below

① under 表示:在……的正下方

② below 表示:在……下方

Please read the words below the picture

请读下面的文字。

Look! A big mouse hides under the armchair

看!一只大老鼠躲在扶手椅下面。

under 和 below 作空间介词的比较

① under 强调在某物的下方,完全覆盖两物体表面可以接触也可以不接触。

② below 强调位置低于某参照物,但并不一定是正下方。

五、between 和 among

① between 表示:(位置、时间、数量等)在……之间(两者之间)

② among 表示:在……中间(三者或三者以上之间)

I often fly between Beijing and Shanghai

我经常在北京和上海之间飞来飞去。

Come here between eight and nine o’ clock

请把点到九点之间过来。

Susan is among the crowd

苏珊是人群当中。

六、into 和 out of

① into 表示:进来

② out of 表示:出去

Get out of the room

从房间里出去!

Bob walked into the room

鲍勃走进房间。

He is working in the office

她在办公室里工作。

七、behind 和 in front of

① behind 表示:在……后面

② in front of 表示:在……前面

There is a fountain in the front of the park

公园的前面有一个喷泉。

Susan sits in front of me and Dudu sits behind me

苏珊坐在我前面,嘟嘟坐在我后面。

八、up 和 down

① up 表示:往上,向……顶上

② down 表示:往下,沿着……往下

The monkey is climbing up the tree

猴子正在往树上爬。

Tears ran down her face

眼泪从她的脸上流了下来。

九、across 和 through

① across 表示:穿过,跨过

② through表示:穿过,通过

There is a bridge across the river there

那儿有座桥横跨在河上。

A train is running through the tunnel

一列火车正从隧道中穿过。

十、by 和 near

① by 表示:在……旁边

② near 表示:在……附近

Come over here and stand by me

过来站在我旁边吧。

We are planning to camp by the lake

我们打算到湖边露营。

There are some big apple trees near the house

房子附近有一些大苹果树。

The new hospital is near our school

新医院里我们学校不远。

十一、其他空间介词

① along 表示:沿着,顺着

② to 表示:到……,去……,向……

Let’s walk along the street

让我们沿着街散散步。

We drove along the freeway

我们驱车沿着高数公路行驶。

The child pointed to the polar star

那孩子指着北极星。

I’m going to the bakery

我想要去那家糕饼店。

第一个to表示“指”的方向、目标。

第二个to表示到达的目的地。

除了按上面介绍表示时间关系、空间关系、方式、手段等的介词外,还有一些重要的介词:

一、of 的用法

① of 表示:……的(表示所属、所有关系)

a cover of this book

这本书的封皮

a friend of my parents

我父母的一个朋友

② of 表示:……之中的(表示部分)

some boys of the team

小组里的几个男生

the end of the story

故事的结尾

Two students of our class joined in the match

我们班里的两个同学参加了这场比赛。

All of us approved his plan

我们全都赞成他的计划。

③ of 表示:……份/量的,……的种类的(表示量、种类)

a drop of water

一滴水

a pair of shoes

一双鞋

I want two cups of coffee

我要两杯咖啡。

二、with 的用法

① with 表示:具有,有……的,随身带着

It is a dog with black spots

它是一只长着黑色斑点的狗。

Take an umbrella with you

带把雨伞吧!

② with表示:和……一起,同……一起,偕同

I went to Disneyland with my mother

我和妈妈一起去了迪斯尼乐园。

Jane likes to play with Mimi

简喜欢和咪咪玩耍。

③ with 表示:随着……

The wine improves with age

这种酒越陈越香。

I get up with the sun every day

我每天日出就起床。

三、for 的用法

① for 表示:为了……(表示目的、用途、利益)

Give me a knife for cutting bread

给我一把切面包的刀子。

I’ve found it for you

我已经为你找到了它。

What can I do for you

我能为你做些什么吗?

② for 表示:一段距离或时间

He has run for a mile

他跑了一英里。

I’ve studied in Beijing for three years

我在北京学习三年了。

Please bake the cake for 40 minutes

请将蛋糕烤四十分钟。

③ for 表示:因为,由于(表示原因)

Thank you for your help

谢谢你的帮助。

Andy jumped for joy at the good news

安迪听到这个消息高兴的跳了起来。

We could hardly see for the mist

由于大雾,我们几乎看不见了。

四、like 的用法

① like表示:像……(一样),似……(一样)

They are like brothers and sisters

他们情同手足。

② like 表示:是什么样子,怎样

Andy looks just like his father

安迪和他爸爸像极了。

五、from 的用法

① from 表示:(时间或场所)从……,自……

We work from Monday to Friday

我们周一到周五上班。

Charlie will fly from New York to London

查理要从纽约飞往伦敦。

The cat jumped down from the top of the wall

猫从墙头跳了下来。

② from 表示(两地的距离)离

The nearest hospital is 10 miles from my house

最近的医院离我家十英里远。

We live about 5 kilometers from Boston

我们住在离波士顿约五公里的地方。

③ from 表示:出自……,来自……

Did you have a (phone) call from him

你接到他的电话了吗?

Where are you from

你来自哪里?

Susan got a letter from her aunt

苏珊收到一封她姨妈的来信。

六、at, about, to 和 in 的其他用法

① at 表示:对着……, 朝着……,向……(表示方向,目标)

He threw a bone at the dog

他用一块骨头砸狗。

Please look at the blackboard

请看黑板。

Jack shot at the deer but missed

杰克朝鹿开了一枪,但是没有打中。

② about 表示:关于……,涉及……

He told me a story about ghosts

他给我讲了一个鬼故事。

Don’t worry about me

不要担心我。

They are talking about English learning

他们在谈论英语学习。

③ to 表示:对于,给,向(表示对象)

Jane is always very kind to others

简总是对别人很友善。

Please send some food to them

请给他们送些食品去。

Have you told all the news to John

你把全部的消息都告诉约翰了吗?

④ in 表示:穿着,戴着

Who is the man in black

那穿黑色衣服的人是谁?

Tom is in a purple hat

汤姆戴着紫色帽子。

The girl in uniform is Mary

穿校服的那个女孩是玛丽。

elementui中tree判断一二级的方法如下:

1、设置node-key属性,每个树节点用来作为唯一标识的属性,整棵树是唯一的。

2、设置default-expanded-keys属性,默认展开的节点的key的数组。

欢迎分享,转载请注明来源:品搜搜测评网

原文地址:https://pinsoso.cn/meirong/2760582.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-12-28
下一篇2023-12-28

随机推荐

  • 怀孕护肤品有哪些牌子?

    爱美之心人皆有之,孕期也要美美哒。在孕期除了要感受身体里小生命的一举一动之外,孕妈妈也要注意对自己肌肤的保养哦,不希望做了妈妈之后变粗糙的、就要开始使用孕期也能使用的一些护肤品吧:呼吸蓝色套装 我闺蜜在备孕期间就换了整套护肤品

    2024-04-15
    1071500
  • 日系精华液有哪些好用?眼霜和精华液的使用顺序是什么?

    很多人在化妆的时候,都会用各种护肤品和化妆品,但在挑选护肤品的时候,总是会很纠结,而且感觉不把护肤品都试一下,根本就找不到适合自己的护肤品,于是总是会在挑选护肤品的时候犹豫不决,那么日系精华液有哪些好用?眼霜和精华液的使用顺序是什么?1、日

    2024-04-15
    1062100
  • 精华霜和精华露的顺序

    对于精华霜和精华露来说,二者的功效大致相同。最大的区别是精华霜的质地要比精华露的质地更加黏稠,在使用的时候要先使用精华露,然后在使用精华霜。因为精华露的质地比较轻薄,在前面使用更容易被肌肤所吸收。如果肌肤状态比较稳定的话,最好不要使用过多的

    2024-04-15
    71900
  • 后的套盒有没有防伪码后天气丹套盒真假鉴别

          Whoo后是来自韩国的顶级宫廷护肤名品。而且LG公司每月出的专柜企划版套盒,种类的丰富、包装的华丽以及搭配多变的赠品更是常常让人心动不已。那么,后的套盒有没有防伪码      后的套盒有没有防伪码      后的套盒没有防伪码。

    2024-04-15
    50000
  • 医院皮肤科薇诺娜比网上贵吗

    对。医院皮肤科薇诺娜的有效成分包含丁二醇、透明质酸钠、青刺果等,其有效成分不仅可以促进肌肤形成正常的屏障功能,而且还可以提升皮肤的耐受性,医院会收取一些其他的费用,线下的较为贵,在网上买的相对便宜。宝宝湿疹医生开了薇诺娜,薇诺娜宝贝舒润滋养

    2024-04-15
    43100
  • 梦泉黑松露套盒怎么样好用吗

    是一款非常出色的高端护肤品套装,好用。优点如下:1、黑松露精华:其中的关键成分是黑松露精华,富含多种抗氧化成分,能深入肌肤,提高肌肤弹性,同时改善细纹皱纹,使肌肤更加光滑且有弹性。2、多种滋润成分:除了黑松露精华,套盒中还含有多种滋润成分,

    2024-04-15
    44700
  • 李佳琦直播预告清单10.21 李佳琦直播预告10.21

    李佳琦直播预告清单1021 李佳琦直播预告1021。10月21日的李佳琦直播将在16:00正式开始,那么今天会有哪些内容,这次都卖了些什么呢,下面小编给大家带来李佳琦2021年10月21日双十一直播的内容预告,一起来看看吧。李佳琦直播预告清

    2024-04-15
    55100

发表评论

登录后才能评论
保存