extend和expand的差别
expand 侧重于 在数量、大小型号、重要性方面的增多、扩展、增强;
而extend则侧重于在 sth.空间(土地)、时间 上的延展、更大、更长.
e.g.expand a story into a novel,Metal expands when they are heated;
extend your stay in Beijing(在北京多停留点时间),extend a garden,wall,road
当伸展、舒展的意义时,expand侧重于指本来折叠、紧致或合拢的事物展开、张开、舒展开来; 而extend则侧重于肢体或身体的伸展、伸出、舒展、展平.
e.g.The petals of the flowers expanded in the sunshine.(花瓣在阳光下张开了.)
His face expanded in a smile of welcome.(他喜笑颜开地表示欢迎.)
The bird extended its wings in flight.(那鸟展翅飞翔.)
The boss extended his hand to the new employee.(老板主动与新雇员握手.)
两者还有其他义项.例如:expand 还表示人变得热情或愿意交谈.extend 还表示竭尽全力或拼命做某事. extent是个名词,意为“程度;范围;长度”。
eg: The Internet is just like a double-edged sword. Whether it does good or harm to us depends, to a great extent, on how we exploit and use it. 互联网就像一把双刃剑。它对我们有益还是有害在很大程度上取决于我们如何开发利用它。
extend和expand都是动词,extend本意为stretch out,它侧重是二维的平面的延伸。而expand可以指三维意义上的膨胀,与contract ‘收缩’相对。
extend是指延伸,extend:make sth.longer / larger / wider in time, space,area.
eg: We have the desire to know more things about this world and is can extend our visual field. 我们想了解更多有关于这个世界的东西并拓宽自己的视野。
expand含有膨胀的意思,人口激增就用expansion 。expand: become greater in size, number or importance
eg: The big western oil companies are trying to expand through acquisitions and investment, but the opportunities do so are becoming scarcer. 西方的石油大公司在尝试通过并购和投资来扩张,不过这样的机会已经越来越少。
expand和extend的区别
expand和extend的区别是:
1、extend 指在一个方向上的延伸、加长,例如:Theoretically, a line can extend into infinity. (从理论上来说直线可以无限地延伸.)。
2、expand 指范围、体积的扩大、膨胀,例如:Metals expand when they are heated. (金属受了热就会膨胀.)
拓展资料
一、Extend
(一)音标:[ɪk'stend]
(二)释义:
vt.(及物动词)
伸展; 给予; 延长; 发出(邀请、欢迎等)
vi.(不及物动词)
伸出; 延伸; 增加
(三)词性变化
1、过去分词: extended
2、过去式: extended
3、现在分词: extending
4、第三人称单数: extends
二、Expand
(一)音标: [ɪkˈspænd]
(二)释义:
vt.(及物动词)
使…变大; 扩张; 详述
vi.(不及物动词)
扩展;展开;发展;张开
(三)词性变化
1、过去分词: expanded
2、过去式: expanded
3、现在分词: expanding
4、第三人称单数: expands
js中layui.extend({})是什么意思?
可以在w3cschool的API文档里找到extend()方法,layui是一个布局库,就是调用他的这个方法,实现的具体功能可以查看layui的API文档或w3cschool的API文档
jquery为什么能够在jquery第一次调用extend函数中使用isPlainObject函数?
从源码可以知道,首先,第一次调用extend函数是在哪?如下图:
是在定义extend函数下面,且在这里面,才开始定义isPlainObject方法:
所以,从表面看,第一次调用extend时,isPlainObject方法还没定义,所以,理论上,调用时会报错;但是实际情况却没有问题,为什么呢?我们看下extend源码:
从上图可以看出,isPlainObject使用是在for循环里面,但是通过console.log打印length可以看出,第一次调用时,其实传入了一个对象,所以此时length为1;所以并不会进入for循环,也就是说此时根本不会去调用jQuery.isPlainObject函数,所以,也就不会报错而无法运行的情况;当后面使用extend时,jQuery.isPlainObject已经初始化定义了,所以也就可以使用了;
extendthedebtforsixmonths.这英语的forsixmonths是什么成分?
for six months是介词短语。介词短语具有形容词、副词和名词特性。在这句中,具有副词特性,作extend的状语。